Class: ConfDb::CreateDb

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/props/db/schema.rb

Instance Method Summary collapse

Instance Method Details

#downObject

Raises:

  • (ActiveRecord::IrreversibleMigration)


17
18
19
# File 'lib/props/db/schema.rb', line 17

def down
  raise ActiveRecord::IrreversibleMigration
end

#upObject



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.timestamps
end

end