class ConfDb::CreateDb

Public Instance Methods

up() click to toggle source
# 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.timestamps
end

end # Schema.define
  end