Files
nairobi/db/migrate/20180323190027_add_translate_milestones.rb
Javi Martín 55addaa58a Apply rubocop rules to migration files
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.
2019-10-24 20:35:13 +02:00

20 lines
741 B
Ruby

class AddTranslateMilestones < ActiveRecord::Migration[4.2]
def change
create_table :budget_investment_milestone_translations do |t|
t.integer :budget_investment_milestone_id, null: false
t.string :locale, null: false
t.timestamps null: false
t.string :title
t.text :description
end
add_index :budget_investment_milestone_translations,
:budget_investment_milestone_id,
name: "index_6770e7675fe296cf87aa0fd90492c141b5269e0b"
add_index :budget_investment_milestone_translations,
:locale,
name: "index_budget_investment_milestone_translations_on_locale"
end
end