Skip to content
Snippets Groups Projects
Select Git revision
  • master default
  • uiUpdates
  • 1.0.0
3 results

20150828100000_add_hours.rb

Blame
  • 20150828100000_add_hours.rb 413 B
    require 'active_record'
    
    class AddHours < ActiveRecord::Migration
    	def change
    		create_table :space_hours do |t|
    			t.integer :service_space_id
    			t.integer :day_of_week # 0 = Sunday, 6 = Saturday
    			t.datetime :effective_date # date to begin using these hours
    			t.boolean :one_off # is this all of this day moving forward or a special day
    			t.string :hours # encoded string describing the hours 
    		end
    	end
    end