Sha256: f31e5258eab1cdd555d02df4a1f36362b7f5e677ca53fc96729cbea2c0c1c99d

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

# This migration comes from date_book (originally 20170807133847)
class CreateSchedules < ActiveRecord::Migration[5.1]
  def self.up
    create_table :schedules do |t|
      t.references :schedulable, polymorphic: true
      
      t.date :date
      t.time :time
      
      t.string :rule
      t.string :interval
      
      t.text :day
      t.text :day_of_week
      
      t.datetime :until
      t.integer :count
      
      t.timestamps
    end
  end

  def self.down
    drop_table :schedules
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
date_book-0.0.6 spec/dummy/db/migrate/20170808150917_create_schedules.date_book.rb
date_book-0.0.5 spec/dummy/db/migrate/20170807134139_create_schedules.date_book.rb
date_book-0.0.3 spec/dummy/db/migrate/20170807134139_create_schedules.date_book.rb
date_book-0.0.2 spec/dummy/db/migrate/20170807134139_create_schedules.date_book.rb
date_book-0.0.1 spec/dummy/db/migrate/20170807134139_create_schedules.date_book.rb