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.
15 lines
311 B
Ruby
15 lines
311 B
Ruby
# rubocop:disable all
|
|
class CreateReleases < ActiveRecord::Migration
|
|
def change
|
|
create_table :releases do |t|
|
|
t.string :tag
|
|
t.text :description
|
|
t.integer :project_id
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :releases, :project_id
|
|
add_index :releases, [:project_id, :tag]
|
|
end
|
|
end
|