13 lines
375 B
Ruby
13 lines
375 B
Ruby
class CreateSeedGenerators < ActiveRecord::Migration[5.0]
|
|
def change
|
|
create_table :seed_generators do |t|
|
|
t.string :model, :null => false, :default => "sale"
|
|
t.integer :increase_by, :null => false, :default => 1
|
|
t.bigint :current, :null => false ,:default => 1
|
|
t.bigint :next, :null => false, :default => 2
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|