98bb435f42
Migrations shouldn't fail RuboCop checks - especially lint checks, such as the nested method check. To avoid changing code in existing migrations, add the magic comment to the top of each of them to skip that file.
14 lines
358 B
Ruby
14 lines
358 B
Ruby
# rubocop:disable all
|
|
class CreateU2fRegistrations < ActiveRecord::Migration
|
|
def change
|
|
create_table :u2f_registrations do |t|
|
|
t.text :certificate
|
|
t.string :key_handle, index: true
|
|
t.string :public_key
|
|
t.integer :counter
|
|
t.references :user, index: true, foreign_key: true
|
|
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|