pic_vert_app/db/migrate/20120912064754_create_notes.rb
2013-01-08 22:47:42 +01:00

13 lines
255 B
Ruby

class CreateNotes < ActiveRecord::Migration
def change
create_table :notes do |t|
t.string :subject
t.text :message
t.references :admin
t.references :topic
t.timestamps
end
add_index :notes, :admin_id
end
end