introduce organizations
This commit is contained in:
parent
bf54487a19
commit
8edf896d86
21 changed files with 345 additions and 4 deletions
9
db/migrate/20170529215453_create_organizations.rb
Normal file
9
db/migrate/20170529215453_create_organizations.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class CreateOrganizations < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :organizations do |t|
|
||||
t.string :name
|
||||
t.text :description
|
||||
t.string :picture
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddOrganizatonIdToConference < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :conferences, :organization_id, :integer
|
||||
end
|
||||
end
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20170419132148) do
|
||||
ActiveRecord::Schema.define(version: 20170531094817) do
|
||||
|
||||
create_table "ahoy_events", force: :cascade do |t|
|
||||
t.uuid "visit_id", limit: 16
|
||||
|
|
@ -100,6 +100,7 @@ ActiveRecord::Schema.define(version: 20170419132148) do
|
|||
t.string "picture"
|
||||
t.integer "start_hour", default: 9
|
||||
t.integer "end_hour", default: 20
|
||||
t.integer "organization_id"
|
||||
end
|
||||
|
||||
create_table "conferences_questions", id: false, force: :cascade do |t|
|
||||
|
|
@ -266,6 +267,12 @@ ActiveRecord::Schema.define(version: 20170419132148) do
|
|||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "organizations", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.text "description"
|
||||
t.string "picture"
|
||||
end
|
||||
|
||||
create_table "payments", force: :cascade do |t|
|
||||
t.string "last4"
|
||||
t.integer "amount"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue