Class: CreateFeatures
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateFeatures
- 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
#change ⇒ Object
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. null: false end end |