| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # frozen_string_literal: true |
||
| 3 | class CreateSettings < ActiveRecord::Migration[5.0] |
||
| 4 | def change |
||
| 5 | create_table :settings do |t| |
||
| 6 | t.string "provider", null: false |
||
| 7 | t.timestamps |
||
| 8 | end |
||
| 9 | |||
| 10 | create_table :features do |t| |
||
| 11 | t.belongs_to :setting |
||
| 12 | t.string "name", null: false |
||
| 13 | t.string "value" |
||
| 14 | t.boolean "enabled", default: false |
||
| 15 | t.timestamps |
||
| 16 | end |
||
| 17 | end |
||
| 18 | end |
||
| 19 |