![Sean McGivern](/assets/img/avatar_default.png)
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.
11 lines
241 B
Ruby
11 lines
241 B
Ruby
# rubocop:disable all
|
|
class CreateLfsObjects < ActiveRecord::Migration
|
|
def change
|
|
create_table :lfs_objects do |t|
|
|
t.string :oid, null: false, unique: true
|
|
t.integer :size, null: false
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|