Sha256: ab6a6de732320257f79140eb7c8b372e5218f544e4aae44622e632f38b460a40

Contents?: true

Size: 740 Bytes

Versions: 12

Compression:

Stored size: 740 Bytes

Contents

class CreateInflectionals < ActiveRecord::Migration

  def self.up
    unless table_exists? :inflectionals
      create_table :inflectionals, :force => false do |t|
        t.timestamps
        t.integer "label_id"
        t.string "value", :limit => 4000
        t.string "normal_hash"
      end
    end

    unless index_exists?(:inflectionals, :label_id, :name => "ix_inflectionals_fk")
      add_index :inflectionals, :label_id, :name => "ix_inflectionals_fk"
    end
    unless index_exists?(:inflectionals, :normal_hash, :name => "ix_inflectionals_normal_hash")
      add_index :inflectionals, :normal_hash, :name => "ix_inflectionals_normal_hash"
    end
  end

  def self.down
    # we don't want to delete existing data
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
iqvoc_inflectionals-2.9.0 db/migrate/20120109143704_create_inflectionals.rb
iqvoc_inflectionals-2.8.0 db/migrate/20120109143704_create_inflectionals.rb
iqvoc_inflectionals-2.5.0 db/migrate/20120109143704_create_inflectionals.rb
iqvoc_inflectionals-2.1.0 db/migrate/20120109143704_create_inflectionals.rb
iqvoc_inflectionals-2.0.3 db/migrate/20120109143704_create_inflectionals.rb
iqvoc_inflectionals-2.0.2 db/migrate/20120109143704_create_inflectionals.rb
iqvoc_inflectionals-2.0.1 db/migrate/20120109143704_create_inflectionals.rb
iqvoc_inflectionals-2.0.0 db/migrate/20120109143704_create_inflectionals.rb
iqvoc_inflectionals-1.1.3 db/migrate/20120109143704_create_inflectionals.rb
iqvoc_inflectionals-1.1.1 db/migrate/20120109143704_create_inflectionals.rb
iqvoc_inflectionals-1.1.0 db/migrate/20120109143704_create_inflectionals.rb
iqvoc_inflectionals-1.0.1 db/migrate/20120109143704_create_inflectionals.rb