Add rails-settings-cached, use for initial feature flags
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
15
db/migrate/20230217084310_create_settings.rb
Normal file
15
db/migrate/20230217084310_create_settings.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateSettings < ActiveRecord::Migration[7.0]
|
||||
def self.up
|
||||
create_table :settings do |t|
|
||||
t.string :var, null: false
|
||||
t.text :value, null: true
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :settings, %i(var), unique: true
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :settings
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user