fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user