Sha256: b13af3ddfe915958c7a67d53096f4e330c5a4f3a3746c148cb8bd60b0bd893f4
Contents?: true
Size: 866 Bytes
Versions: 3
Compression:
Stored size: 866 Bytes
Contents
class CreateTranslationCenterTranslations < ActiveRecord::Migration def change # if mysql if 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.string :value t.string :lang t.references :translator, polymorphic: true t.string :status, default: 'pending' t.timestamps end # else using pgsql else create_table :translation_center_translations, options: "ENCODING 'UTF8'" do |t| t.integer :translation_key_id t.string :value t.string :lang t.references :translator, polymorphic: true t.string :status, default: 'pending' t.timestamps end end end end
Version data entries
3 entries across 3 versions & 1 rubygems