19 lines
447 B
Ruby
19 lines
447 B
Ruby
class CreateTidings < ActiveRecord::Migration
|
|
def change
|
|
create_table :tidings do |t|
|
|
t.integer :user_id
|
|
t.integer :trigger_user_id
|
|
t.integer :container_id
|
|
t.string :container_type
|
|
t.integer :parent_container_id
|
|
t.string :parent_container_type
|
|
t.integer :belong_container_id
|
|
t.string :belong_container_type
|
|
t.integer :status
|
|
t.boolean :viewed
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|