greenlight-2.14.4/db/migrate/20190326144939_create_settings.rb
2023-02-13 23:17:00 +08:00

19 lines
396 B
Ruby

# frozen_string_literal: true
class CreateSettings < ActiveRecord::Migration[5.0]
def change
create_table :settings do |t|
t.string "provider", null: false
t.timestamps
end
create_table :features do |t|
t.belongs_to :setting
t.string "name", null: false
t.string "value"
t.boolean "enabled", default: false
t.timestamps
end
end
end