mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-21 05:09:15 +00:00
Adding Schedule model
This commit is contained in:
3
app/models/schedule.rb
Normal file
3
app/models/schedule.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Schedule < ActiveRecord::Base
|
||||
# attr_accessible :title, :body
|
||||
end
|
||||
8
db/migrate/20160630052453_create_schedules.rb
Normal file
8
db/migrate/20160630052453_create_schedules.rb
Normal 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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user