Sha256: c61a0ff98f267868ac20cd26a52f11e4170497b969e3eebf7d5d60f0899bf8dd
Contents?: true
Size: 1.67 KB
Versions: 7
Compression:
Stored size: 1.67 KB
Contents
# frozen_string_literal: true # This migration comes from spina (originally 2) 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
7 entries across 7 versions & 1 rubygems