18 lines
471 B
Ruby
18 lines
471 B
Ruby
class CreateMemos < ActiveRecord::Migration
|
|
def change
|
|
create_table :memos do |t|
|
|
t.integer :forum_id, :null => false
|
|
t.integer :parent_id, null: true
|
|
t.string :subject, null: false
|
|
t.text :content, null: false
|
|
t.integer :author_id, null: false
|
|
t.integer :replies_count, default: 0
|
|
t.integer :last_reply_id
|
|
t.boolean :lock, default: false
|
|
t.boolean :sticky, default: false
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|