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

14 lines
282 B
Ruby

# -*- encoding : utf-8 -*-
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