Class: CreateFeatures

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/flip/migration/templates/create_features.rb

Overview

Created by the flip gem, see github.com/pda/flip

Instance Method Summary collapse

Instance Method Details

#changeObject



3
4
5
6
7
8
9
10
# File 'lib/generators/flip/migration/templates/create_features.rb', line 3

def change
  create_table :features do |t|
    t.string :key, null: false
    t.boolean :enabled, null: false, default: false

    t.timestamps null: false
  end
end