Class: CreateFeatureTag

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/pin_flags/install/templates/create_feature_tag.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/pin_flags/install/templates/create_feature_tag.rb', line 2

def change
  create_table :pin_flags_feature_tags do |t|
    t.string :name, null: false
    t.boolean :enabled, default: true, null: false

    t.timestamps
  end

  add_index :pin_flags_feature_tags, :name, unique: true
end