17 lines
299 B
Ruby
17 lines
299 B
Ruby
|
class CreateUserActivity < ActiveRecord::Migration
|
||
|
def up
|
||
|
create_table :user_activities do |t|
|
||
|
t.string :act_type
|
||
|
t.integer :act_id
|
||
|
t.string :container_type
|
||
|
t.integer :container_id
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
drop_table :user_activities
|
||
|
end
|
||
|
end
|