Sha256: e23809a88635aa84cb44808d71369f47cfb233593c650c009a9e4d6125a7c249

Contents?: true

Size: 366 Bytes

Versions: 37

Compression:

Stored size: 366 Bytes

Contents

class CreateEnumerations < ActiveRecord::Migration
  def change
    create_table :enumerations, options: 'DEFAULT CHARSET=utf8' do |t|
      t.string :name, null: false, limit: 128
      t.string :type, null: false

      t.timestamps
    end
    add_index :enumerations, :name
    add_index :enumerations, :type
    add_index :enumerations, [:name, :type]
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
reso-0.1.6.7 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.6.6 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.6.5 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.6.4 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.6.3 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.6.2 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.6.1 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.6 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.5.11 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.5.10 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.5.9 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.5.7 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.5.6 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.5.5 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.5.4 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.5.3 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.5.2 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.5.1 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.5.0 lib/generators/reso/templates/create_enumerations.rb
reso-0.1.4.10 lib/generators/reso/templates/create_enumerations.rb