Sha256: eefab71946ae9d5ab7e9d34c849c78e0eb8d020563f90fcc1f056c653ae75c81

Contents?: true

Size: 291 Bytes

Versions: 32

Compression:

Stored size: 291 Bytes

Contents

class CreateNiiTypes < ActiveRecord::Migration
  def change
    create_table :nii_types do |t|
      t.string :name, :null => false
      t.text :display_name
      t.text :note
      t.integer :position

      t.timestamps
    end
    add_index :nii_types, :name, :unique => true
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
enju_nii-0.2.1 db/migrate/20090913173236_create_nii_types.rb
enju_oai-0.2.0 spec/dummy/db/migrate/20090913173236_create_nii_types.rb
enju_nii-0.2.0 db/migrate/20090913173236_create_nii_types.rb
enju_nii-0.2.0.beta.3 db/migrate/20090913173236_create_nii_types.rb
enju_oai-0.2.0.beta.4 spec/dummy/db/migrate/20090913173236_create_nii_types.rb
enju_oai-0.2.0.beta.2 spec/dummy/db/migrate/20090913173236_create_nii_types.rb
enju_nii-0.2.0.beta.2 db/migrate/20090913173236_create_nii_types.rb
enju_oai-0.2.0.beta.1 spec/dummy/db/migrate/20090913173236_create_nii_types.rb
enju_nii-0.2.0.beta.1 db/migrate/20090913173236_create_nii_types.rb
enju_oai-0.1.1 spec/dummy/db/migrate/20090913173236_create_nii_types.rb
enju_nii-0.1.1 db/migrate/20090913173236_create_nii_types.rb
enju_oai-0.1.0 spec/dummy/db/migrate/20090913173236_create_nii_types.rb
enju_nii-0.1.0 db/migrate/20090913173236_create_nii_types.rb
enju_nii-0.1.0.pre14 db/migrate/20090913173236_create_nii_types.rb
enju_oai-0.1.0.pre20 spec/dummy/db/migrate/20090913173236_create_nii_types.rb
enju_oai-0.1.0.pre19 spec/dummy/db/migrate/20090913173236_create_nii_types.rb
enju_oai-0.1.0.pre18 spec/dummy/db/migrate/20090913173236_create_nii_types.rb
enju_nii-0.1.0.pre13 db/migrate/20090913173236_create_nii_types.rb
enju_nii-0.1.0.pre12 db/migrate/20090913173236_create_nii_types.rb
enju_nii-0.1.0.pre11 db/migrate/20090913173236_create_nii_types.rb