15 lines
384 B
Ruby
15 lines
384 B
Ruby
|
class CreateReminders < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :reminders do |t|
|
||
|
t.timestamps
|
||
|
t.integer :from_user_id, :null => false
|
||
|
t.integer :to_user_id, :null => false
|
||
|
t.integer :hydrant_id, :null => false
|
||
|
end
|
||
|
|
||
|
add_index :reminders, :from_user_id
|
||
|
add_index :reminders, :to_user_id
|
||
|
add_index :reminders, :hydrant_id
|
||
|
end
|
||
|
end
|