model/migration for promoted statuses

This commit is contained in:
2458773093
2019-08-31 00:14:50 +03:00
parent 3b1cfd4253
commit 044e9695fe
3 changed files with 44 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
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