Sha256: fa15985a417b7ee69418783d82852b65f44c9019f28b2ed30db646a78b423370

Contents?: true

Size: 1.59 KB

Versions: 45

Compression:

Stored size: 1.59 KB

Contents

class CreateSpinaTranslationTables < ActiveRecord::Migration[4.2]
  def up
    create_table "spina_page_translations", force: :cascade do |t|
      t.integer "spina_page_id", null: false
      t.string "locale", null: false
      t.string "title"
      t.string "menu_title"
      t.string "description"
      t.string "seo_title"
      t.string "materialized_path"
      t.datetime "created_at", null: false
      t.datetime "updated_at", null: false
      t.index ["locale"], name: "index_spina_page_translations_on_locale"
      t.index ["spina_page_id"], name: "index_spina_page_translations_on_spina_page_id"
    end

    create_table "spina_line_translations", force: :cascade do |t|
      t.integer "spina_line_id", null: false
      t.string "locale", null: false
      t.string "content"
      t.datetime "created_at", null: false
      t.datetime "updated_at", null: false
      t.index ["locale"], name: "index_spina_line_translations_on_locale"
      t.index ["spina_line_id"], name: "index_spina_line_translations_on_spina_line_id"
    end

    create_table "spina_text_translations", force: :cascade do |t|
      t.integer "spina_text_id", null: false
      t.string "locale", null: false
      t.text "content"
      t.datetime "created_at", null: false
      t.datetime "updated_at", null: false
      t.index ["locale"], name: "index_spina_text_translations_on_locale"
      t.index ["spina_text_id"], name: "index_spina_text_translations_on_spina_text_id"
    end
  end

  def down
    drop_table "spina_page_translations"
    drop_table "spina_text_translations"
    drop_table "spina_line_translations"
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
spina-2.18.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.17.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.16.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.15.1 db/migrate/2_create_spina_translation_tables.rb
spina-2.15.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.14.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.13.1 db/migrate/2_create_spina_translation_tables.rb
spina-2.13.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.12.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.11.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.10.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.9.1 db/migrate/2_create_spina_translation_tables.rb
spina-2.9.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.8.1 db/migrate/2_create_spina_translation_tables.rb
spina-2.8.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.7.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.6.2 db/migrate/2_create_spina_translation_tables.rb
spina-2.6.1 db/migrate/2_create_spina_translation_tables.rb
spina-2.6.0 db/migrate/2_create_spina_translation_tables.rb
spina-2.5.0 db/migrate/2_create_spina_translation_tables.rb