Sha256: 94c155d36824219efa013eb2fc53c4e51ab7ab276024750491e71851d482ab55
Contents?: true
Size: 950 Bytes
Versions: 15
Compression:
Stored size: 950 Bytes
Contents
class CreateTranslationCenterTranslations < ActiveRecord::Migration def change # if mysql if defined?(ActiveRecord::ConnectionAdapters::Mysql2Adapter).present? && ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters::Mysql2Adapter) create_table :translation_center_translations, options: 'CHARACTER SET=utf8' do |t| t.integer :translation_key_id t.text :value t.string :lang t.references :translator, polymorphic: true t.string :status, default: 'pending' t.timestamps end else create_table :translation_center_translations do |t| t.integer :translation_key_id t.text :value t.string :lang t.references :translator, polymorphic: true t.string :status, default: 'pending' t.timestamps end end add_index :translation_center_translations, :translation_key_id end end
Version data entries
15 entries across 15 versions & 2 rubygems