Retrospring/db/migrate/20140801174930_create_quest...

14 lines
302 B
Ruby
Raw Normal View History

2014-10-27 22:36:38 -07:00
class CreateQuestions < ActiveRecord::Migration
def change
create_table :questions do |t|
t.string :content
t.boolean :author_is_anonymous
t.string :author_name
t.string :author_email
t.timestamps
end
add_index :questions, [:user_id, :created_at]
end
end