blob: bf8f5fc6e29fea33cd35d2a9c7e75623d002d7cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class CreateDevices < ActiveRecord::Migration[5.0]
def change
create_table :devices do |t|
t.integer :account_id, null: false
t.string :registration_id, null: false, default: ''
t.timestamps
end
add_index :devices, :registration_id
add_index :devices, :account_id
end
end
|