This commit is contained in:
albert
2011-07-09 03:32:18 -04:00
parent 085995126c
commit a16dfdf0dd
14 changed files with 75 additions and 48 deletions

View File

@@ -2,6 +2,7 @@ class CreateNoteVersions < ActiveRecord::Migration
def self.up
create_table :note_versions do |t|
t.column :note_id, :integer, :null => false
t.column :post_id, :integer, :null => false
t.column :updater_id, :integer, :null => false
t.column :updater_ip_addr, "inet", :null => false
t.column :x, :integer, :null => false
@@ -14,6 +15,7 @@ class CreateNoteVersions < ActiveRecord::Migration
end
add_index :note_versions, :note_id
add_index :note_versions, :post_id
add_index :note_versions, :updater_id
add_index :note_versions, :updater_ip_addr
end