scinote-web/db/migrate/20170217141402_create_settings_table.rb

10 lines
248 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class CreateSettingsTable < ActiveRecord::Migration[4.2]
def change
create_table :settings do |t|
t.text :type, null: false
t.jsonb :values, null: false, default: {}
end
add_index(:settings, :type, unique: true)
end
end