Sha256: e2c9861635db512cb29082041b48e58ee299e98b0730fff4a9b636a7bfd2cefc

Contents?: true

Size: 390 Bytes

Versions: 412

Compression:

Stored size: 390 Bytes

Contents

class CreateSubscribes < ActiveRecord::Migration
  def change
    create_table :subscribes do |t|
      t.integer :subscription_id, :null => false
      t.integer :work_id, :null => false
      t.datetime :start_at, :null => false
      t.datetime :end_at, :null => false

      t.timestamps
    end
    add_index :subscribes, :subscription_id
    add_index :subscribes, :work_id
  end
end

Version data entries

412 entries across 409 versions & 24 rubygems

Version Path
enju_biblio-0.2.4 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_subject-0.2.3 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_manifestation_viewer-0.2.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_message-0.2.3 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_event-0.2.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_circulation-0.2.4 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_nii-0.2.1 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_subject-0.2.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_circulation-0.2.3 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_message-0.2.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_biblio-0.2.3 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_grid-0.2.0 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_biblio-0.2.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_manifestation_viewer-0.2.1 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_circulation-0.2.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_event-0.2.1 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_message-0.2.1 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_subject-0.2.1 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_leaf-1.2.1 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/dummy/db/migrate/20081006093246_create_subscribes.rb