18 lines
459 B
Ruby
18 lines
459 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
|
||
|
t.integer :last_reply_id
|
||
|
t.boolean :lock, default: false
|
||
|
t.boolean :sticky, default: false
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|