socialforge/db/migrate/20131122132942_create_memos.rb

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