|
class CreateBlogMessages < ActiveRecord::Migration
|
|
def change
|
|
create_table :blog_messages do |t|
|
|
t.references :user
|
|
t.references :blog_commont
|
|
t.integer :blog_id
|
|
t.string :blog_message_type
|
|
t.boolean :viewed, :default => false
|
|
t.text :content
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|
|
|