Skip to content
Snippets Groups Projects
Commit 8a267e85 authored by Tyler R Lemburg's avatar Tyler R Lemburg
Browse files

Add resource hours migration and model

parent 39cb3695
No related branches found
No related tags found
No related merge requests found
require 'active_record'
class AddResourceHours < ActiveRecord::Migration
def change
create_table :resource_hours do |t|
t.integer :resource_id
t.integer :day_of_week
t.datetime :effective_date
t.boolean :one_off
t.string :hours
end
end
end
\ No newline at end of file
require 'active_record'
class ResourceHour < ActiveRecord::Base
serialize :hours, Array
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment