mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 02:56:26 -05:00
13 lines
343 B
Ruby
13 lines
343 B
Ruby
|
class CreateUserFirsts < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :user_firsts, force: true do |t|
|
||
|
t.integer :user_id, null: false
|
||
|
t.integer :first_type, null: false
|
||
|
t.integer :post_id
|
||
|
t.datetime :created_at, null: false
|
||
|
end
|
||
|
|
||
|
add_index :user_firsts, [:user_id, :first_type], unique: true
|
||
|
end
|
||
|
end
|