Merge pull request #1261 from shlok007/resources
Ability to track resources
This commit is contained in:
commit
f42e4adc45
17 changed files with 265 additions and 2 deletions
11
db/migrate/20170129075434_create_resources_table.rb
Normal file
11
db/migrate/20170129075434_create_resources_table.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class CreateResourcesTable < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :resources do |t|
|
||||
t.string :name
|
||||
t.text :description
|
||||
t.integer :quantity
|
||||
t.integer :used, default: 0
|
||||
t.references :conference
|
||||
end
|
||||
end
|
||||
end
|
||||
10
db/schema.rb
10
db/schema.rb
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160815140302) do
|
||||
ActiveRecord::Schema.define(version: 20170129075434) do
|
||||
|
||||
create_table "ahoy_events", force: :cascade do |t|
|
||||
t.uuid "visit_id", limit: 16
|
||||
|
|
@ -344,6 +344,14 @@ ActiveRecord::Schema.define(version: 20160815140302) do
|
|||
t.integer "vchoice_id"
|
||||
end
|
||||
|
||||
create_table "resources", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.text "description"
|
||||
t.integer "quantity"
|
||||
t.integer "used", default: 0
|
||||
t.integer "conference_id"
|
||||
end
|
||||
|
||||
create_table "roles", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.datetime "created_at"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue