Sha256: ad49bea774f32470325a6796cfbdc754172bfe24a0817a0399cad39030277a80

Contents?: true

Size: 434 Bytes

Versions: 53

Compression:

Stored size: 434 Bytes

Contents

class CreateItemHasUseRestrictions < ActiveRecord::Migration[4.2]
  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

53 entries across 53 versions & 9 rubygems

Version Path
enju_ndl-0.3.3 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_bookmark-0.3.2 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_seed-0.3.6 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_oai-0.3.1 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_seed-0.3.5 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_ndl-0.3.2 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_seed-0.4.0.rc.2 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_event-0.3.4 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_seed-0.3.4 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_event-0.3.3 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_seed-0.4.0.rc.1 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_seed-0.4.0.beta.3 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_ndl-0.4.0.beta.1 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_seed-0.5.0.beta.1 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_seed-0.4.0.beta.2 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_seed-0.3.3 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_library-0.3.3 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_bookmark-0.3.1 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
enju_event-0.3.2 spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb