gab-social/db/migrate/20190903162122_create_promotions.rb

12 lines
299 B
Ruby
Raw Normal View History

2019-08-30 22:14:50 +01:00
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