Class: CreateFeatureTag
- Inherits:
-
Object
- Object
- CreateFeatureTag
- Defined in:
- lib/generators/pin_flags/install/templates/create_feature_tag.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
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. end add_index :pin_flags_feature_tags, :name, unique: true end |