gab-social/db/migrate/20190903162122_create_promotions.rb
2019-09-04 00:14:50 +03:00

12 lines
299 B
Ruby

class CreatePromotions < ActiveRecord::Migration[5.2]
def change
create_table :promotions do |t|
t.timestamps
t.datetime :expires_at, null: true
t.bigint :status_id, null: false
t.string :timeline_id, null: true
t.integer :position, default: 10
end
end
end