Sha256: e01fb92f10532b8a7749ad8a0145df77ac9c69bae2359cdb3fcaa4fbcf901922

Contents?: true

Size: 293 Bytes

Versions: 5

Compression:

Stored size: 293 Bytes

Contents

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 db/migrate/20170807133849_create_event_occurrences.rb
date_book-0.0.5 db/migrate/20170807133849_create_event_occurrences.rb
date_book-0.0.3 db/migrate/20170807133849_create_event_occurrences.rb
date_book-0.0.2 db/migrate/20170807133849_create_event_occurrences.rb
date_book-0.0.1 db/migrate/20170807133849_create_event_occurrences.rb