Merge pull request #3097 from consul/fix_milestone_translations_migration

Fix budget investment milestone translations migration
This commit is contained in:
Javier Martín
2018-12-12 14:48:59 +01:00
committed by GitHub
2 changed files with 18 additions and 7 deletions

View File

@@ -1,12 +1,20 @@
class AddTranslateMilestones < ActiveRecord::Migration
def change
create_table :budget_investment_milestone_translations do |t|
t.integer :budget_investment_milestone_id, null: false
t.string :locale, null: false
t.string :title
t.text :description
t.integer :budget_investment_milestone_id, null: false
t.string :locale, null: false
t.timestamps null: false
t.string :title
t.text :description
t.timestamps null: false
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

View File

@@ -176,12 +176,15 @@ ActiveRecord::Schema.define(version: 20181109111037) do
create_table "budget_investment_milestone_translations", force: :cascade do |t|
t.integer "budget_investment_milestone_id", null: false
t.string "locale", null: false
t.string "title"
t.text "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "title"
t.text "description"
end
add_index "budget_investment_milestone_translations", ["budget_investment_milestone_id"], name: "index_6770e7675fe296cf87aa0fd90492c141b5269e0b", using: :btree
add_index "budget_investment_milestone_translations", ["locale"], name: "index_budget_investment_milestone_translations_on_locale", using: :btree
create_table "budget_investment_milestones", force: :cascade do |t|
t.integer "investment_id"
t.string "title", limit: 80