demarches-normaliennes/db/migrate/20180405131207_create_features.rb

13 lines
323 B
Ruby
Raw Normal View History

2018-04-18 12:15:21 +02:00
class CreateFeatures < ActiveRecord::Migration[5.2]
def change
create_table :flipflop_features do |t|
t.string :key, null: false
t.boolean :enabled, null: false, default: false
t.timestamps null: false
end
add_column :administrateurs, :features, :jsonb, null: false, default: {}
end
end