diff --git a/app/models/schedule.rb b/app/models/schedule.rb new file mode 100644 index 0000000000..e1d70f4a5e --- /dev/null +++ b/app/models/schedule.rb @@ -0,0 +1,3 @@ +class Schedule < ActiveRecord::Base + # attr_accessible :title, :body +end diff --git a/db/migrate/20160630052453_create_schedules.rb b/db/migrate/20160630052453_create_schedules.rb new file mode 100644 index 0000000000..f1cf5fa5c5 --- /dev/null +++ b/db/migrate/20160630052453_create_schedules.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index be414f9187..3b1696f879 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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"