You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trustieforge/db/migrate/20131122132942_create_memos.rb

18 lines
471 B

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