2015-01-08 12:00:43 +08:00
|
|
|
class CreatePollUsers < ActiveRecord::Migration
|
2015-01-08 17:42:46 +08:00
|
|
|
def up
|
2015-01-08 12:00:43 +08:00
|
|
|
create_table :poll_users do |t|
|
|
|
|
t.integer :user_id
|
|
|
|
t.integer :poll_id
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
2015-01-08 17:42:46 +08:00
|
|
|
|
|
|
|
def down
|
|
|
|
drop_table :poll_users
|
|
|
|
end
|
2015-01-08 12:00:43 +08:00
|
|
|
end
|