There are some rules which only affect migration files, and we cannot enable them if we're excluding those files from being inspected. We're also changing migrations related to the Rails/TimeZone rule slightly because these fields were already changed afterwards, so we aren't changing the schema.
13 lines
421 B
Ruby
13 lines
421 B
Ruby
class CreateProposalExecutedDashboardActions < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :proposal_executed_dashboard_actions do |t|
|
|
t.references :proposal, index: true, foreign_key: true
|
|
t.references :proposal_dashboard_action, index: { name: "index_proposal_action" }, foreign_key: true
|
|
t.datetime :executed_at
|
|
t.text :comments
|
|
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|