Sha256: 7df369a91e2bcd9709f56a69d52e5c82e8a580328d44341188005e004ed4481e

Contents?: true

Size: 359 Bytes

Versions: 5

Compression:

Stored size: 359 Bytes

Contents

# This migration comes from date_book (originally 20170807133849)
class CreateEventOccurrences < ActiveRecord::Migration[5.1]
  def self.up
    create_table :event_occurrences do |t|

      t.references :schedulable, polymorphic: true
      t.datetime :date

      t.timestamps
      
    end
  end

  def self.down
    drop_table :event_occurrences
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
date_book-0.0.6 spec/dummy/db/migrate/20170808150919_create_event_occurrences.date_book.rb
date_book-0.0.5 spec/dummy/db/migrate/20170807134141_create_event_occurrences.date_book.rb
date_book-0.0.3 spec/dummy/db/migrate/20170807134141_create_event_occurrences.date_book.rb
date_book-0.0.2 spec/dummy/db/migrate/20170807134141_create_event_occurrences.date_book.rb
date_book-0.0.1 spec/dummy/db/migrate/20170807134141_create_event_occurrences.date_book.rb