Create flipflop table
This commit is contained in:
parent
49d9833473
commit
6b9003c3f4
2 changed files with 21 additions and 1 deletions
12
db/migrate/20180405131207_create_features.rb
Normal file
12
db/migrate/20180405131207_create_features.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue