class CreateFlipFlopFeatureTable

Public Class Methods

down() click to toggle source
# File lib/generators/templates/migration.rb, line 12
def self.down
  drop_table :flip_flop_features
end
up() click to toggle source
# File lib/generators/templates/migration.rb, line 2
def self.up
  create_table :flip_flop_features do |t|
    t.string :name
    t.string :gate_type
    t.text :value
  end

  add_index :flip_flop_features, :name, unique: true
end