Sha256: 24757de313c6ee8f35f36b48da3d7326efad13fa0fc2da0d5e0b7e3916934bff

Contents?: true

Size: 287 Bytes

Versions: 1

Compression:

Stored size: 287 Bytes

Contents

class CreateLocalizations < ActiveRecord::Migration
  def change
    create_table :localizations do |t|
      t.references :localizable, polymorphic: true
      t.string :name
      t.string :locale
      t.text :value, limit: 16_777_215
      t.timestamps null: false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
localizable_model-0.0.1 lib/rails/generators/localizable_model/migration/templates/create_localizations.rb