Adding Schedule model

This commit is contained in:
Rob Harrington
2016-06-30 15:36:57 +10:00
parent 0d845b0fd6
commit c51b956b01
3 changed files with 17 additions and 0 deletions

3
app/models/schedule.rb Normal file
View File

@@ -0,0 +1,3 @@
class Schedule < ActiveRecord::Base
# attr_accessible :title, :body
end

View File

@@ -0,0 +1,8 @@
class CreateSchedules < ActiveRecord::Migration
def change
create_table :schedules do |t|
t.string :name, null: false
t.timestamps
end
end
end

View File

@@ -339,6 +339,12 @@ ActiveRecord::Schema.define(:version => 20170921065259) do
add_index "product_distributions", ["enterprise_fee_id"], :name => "index_product_distributions_on_enterprise_fee_id"
add_index "product_distributions", ["product_id"], :name => "index_product_distributions_on_product_id"
create_table "schedules", :force => true do |t|
t.string "name", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "sessions", :force => true do |t|
t.string "session_id", :null => false
t.text "data"