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