ecole_eft_app/db/migrate/20140612064754_create_notes.rb

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