adopt-a-hydrant/db/migrate/00000000000004_create_remin...

17 lines
441 B
Ruby
Raw Normal View History

2011-05-22 14:35:46 +00:00
class CreateReminders < ActiveRecord::Migration
def change
create_table :reminders do |t|
t.timestamps
2012-06-18 17:49:28 +00:00
t.integer :from_user_id, null: false
t.integer :to_user_id, null: false
t.integer :thing_id, null: false
t.boolean :sent, default: false
2011-05-22 14:35:46 +00:00
end
add_index :reminders, :from_user_id
add_index :reminders, :to_user_id
add_index :reminders, :thing_id
2011-06-13 22:39:39 +00:00
add_index :reminders, :sent
2011-05-22 14:35:46 +00:00
end
end