class CreateSequential
Public Instance Methods
change()
click to toggle source
# File lib/rails/generators/sequential/setup/templates/migration.rb, line 2 def change create_table(:sequential) do |t| t.string :model t.string :column t.string :scope t.string :scope_value t.integer :value t.timestamps end add_index :sequential, [:model, :column, :scope, :scope_value], unique: true end