Class: CreateUnavailableDates

Inherits:
Object
  • Object
show all
Defined in:
lib/unavailability/unavailable_dates/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
# File 'lib/unavailability/unavailable_dates/migration.rb', line 2

def change
  create_table :unavailable_dates do |t|
    t.date    :from
    t.date    :to
    t.references :dateable, polymorphic: true

    t.timestamps
  end
end