Sha256: ab493cd6d161d7ba0930d9364f6e5b9f08b72f19baca697d44eaa85c4c66f4b2

Contents?: true

Size: 448 Bytes

Versions: 5

Compression:

Stored size: 448 Bytes

Contents

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