Class: ConfDb::CreateDb
- Inherits:
-
Object
- Object
- ConfDb::CreateDb
- Defined in:
- lib/props/activerecord/schema.rb
Instance Method Summary collapse
Instance Method Details
#up ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/props/activerecord/schema.rb', line 7 def up ActiveRecord::Schema.define do create_table :props do |t| t.string :key, null: false t.string :value, null: false # note: do NOT/can NOT use type - already used by ActiveRecord (for single-table-inheritance/STI) t.string :kind # e.g. version|user|sys(tem)|db etc. t. end end # Schema.define end |