This repository has been archived on 2021-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
greenlight/db/migrate/20190326144939_create_setti...

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