docbrown/db/migrate/20191106095242_create_site_configs.rb
rhymes bb28f301e9 Add site config and remove sail (#4729)
* Add SiteConfig model based on rails-settings-cached

* Remove sail
2019-11-08 13:27:44 -05:00

15 lines
329 B
Ruby

class CreateSiteConfigs < ActiveRecord::Migration[5.2]
def self.up
create_table :site_configs do |t|
t.string :var, null: false
t.text :value, null: true
t.timestamps
end
add_index :site_configs, %i(var), unique: true
end
def self.down
drop_table :site_configs
end
end