Create flipflop table

This commit is contained in:
Paul Chavard 2018-04-18 12:15:21 +02:00
parent 49d9833473
commit 6b9003c3f4
2 changed files with 21 additions and 1 deletions

View file

@ -0,0 +1,12 @@
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