Sha256: 193207513d6f103e0c956a8b6703d2dc586ae14ea6aea9ba52a7fa629fe12a4f

Contents?: true

Size: 435 Bytes

Versions: 439

Compression:

Stored size: 435 Bytes

Contents

class CreateItemHasUseRestrictions < ActiveRecord::Migration
  def self.up
    create_table :item_has_use_restrictions do |t|
      t.integer :item_id, :null => false
      t.integer :use_restriction_id, :null => false

      t.timestamps
    end
    add_index :item_has_use_restrictions, :item_id
    add_index :item_has_use_restrictions, :use_restriction_id
  end

  def self.down
    drop_table :item_has_use_restrictions
  end
end

Version data entries

439 entries across 432 versions & 12 rubygems

Version Path
enju_leaf-1.2.2 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_library-0.2.5 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_biblio-0.2.5 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_bookmark-0.2.2 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_event-0.2.3 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_seed-0.2.3 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_biblio-0.2.4 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_library-0.2.4 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_event-0.2.2 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_bookmark-0.2.1 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_biblio-0.2.3 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_library-0.2.3 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_seed-0.2.2 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_ndl-0.2.3 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_ndl-0.2.2 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_grid-0.2.0 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_biblio-0.2.2 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_ndl-0.2.1 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_event-0.2.1 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_leaf-1.2.1 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb