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_ndl-0.2.0.beta.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_seed-0.2.0.beta.5 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_library-0.2.0.beta.4 db/migrate/20081006093246_create_subscribes.rb
enju_seed-0.2.0.beta.4 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_loc-0.2.0.beta.1 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_question-0.2.0.beta.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_subject-0.2.0.beta.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_circulation-0.2.0.beta.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_event-0.2.0.beta.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_message-0.2.0.beta.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_bookmark-0.2.0.beta.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_leaf-1.2.0.beta.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_manifestation_viewer-0.2.0.beta.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_biblio-0.2.0.beta.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_library-0.2.0.beta.3 db/migrate/20081006093246_create_subscribes.rb
enju_seed-0.2.0.beta.3 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_library-0.2.0.beta.2 db/migrate/20081006093246_create_subscribes.rb
enju_seed-0.2.0.beta.2 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_inventory-0.2.0.beta.1 spec/dummy/db/migrate/20081006093246_create_subscribes.rb
enju_search_log-0.2.0.beta.1 spec/dummy/db/migrate/20081006093246_create_subscribes.rb