Adds organization model
This commit is contained in:
parent
a95a03c7e5
commit
b63f3fa7c9
5 changed files with 84 additions and 10 deletions
16
db/migrate/20140605101748_create_organizations.rb
Normal file
16
db/migrate/20140605101748_create_organizations.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
class CreateOrganizations < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :organizations do |t|
|
||||
t.string :name
|
||||
t.string :email
|
||||
t.string :phone_number
|
||||
t.string :website_url
|
||||
t.text :description
|
||||
t.string :logo_file_name
|
||||
t.string :logo_content_type
|
||||
t.integer :logo_file_size
|
||||
t.datetime :logo_updated_at
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
34
db/schema.rb
34
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: 20140604142949) do
|
||||
ActiveRecord::Schema.define(version: 20140605101748) do
|
||||
|
||||
create_table "answers", force: true do |t|
|
||||
t.string "title"
|
||||
|
|
@ -50,15 +50,15 @@ ActiveRecord::Schema.define(version: 20140604142949) do
|
|||
add_index "comments", ["user_id"], name: "index_comments_on_user_id"
|
||||
|
||||
create_table "conferences", force: true do |t|
|
||||
t.string "guid", null: false
|
||||
t.string "title", null: false
|
||||
t.string "short_title", null: false
|
||||
t.string "guid", null: false
|
||||
t.string "title", null: false
|
||||
t.string "short_title", null: false
|
||||
t.string "social_tag"
|
||||
t.string "contact_email", null: false
|
||||
t.string "timezone", null: false
|
||||
t.string "contact_email", null: false
|
||||
t.string "timezone", null: false
|
||||
t.string "html_export_path"
|
||||
t.date "start_date", null: false
|
||||
t.date "end_date", null: false
|
||||
t.date "start_date", null: false
|
||||
t.date "end_date", null: false
|
||||
t.integer "venue_id"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
|
|
@ -186,6 +186,20 @@ ActiveRecord::Schema.define(version: 20140604142949) do
|
|||
t.integer "event_id"
|
||||
end
|
||||
|
||||
create_table "organizations", force: true do |t|
|
||||
t.string "name"
|
||||
t.string "email"
|
||||
t.string "phone_number"
|
||||
t.string "website_url"
|
||||
t.text "description"
|
||||
t.string "logo_file_name"
|
||||
t.string "logo_content_type"
|
||||
t.integer "logo_file_size"
|
||||
t.datetime "logo_updated_at"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "people", force: true do |t|
|
||||
t.string "guid", null: false
|
||||
t.string "first_name", default: ""
|
||||
|
|
@ -308,9 +322,9 @@ ActiveRecord::Schema.define(version: 20140604142949) do
|
|||
end
|
||||
|
||||
create_table "tracks", force: true do |t|
|
||||
t.string "guid", null: false
|
||||
t.string "guid", null: false
|
||||
t.integer "conference_id"
|
||||
t.string "name", null: false
|
||||
t.string "name", null: false
|
||||
t.text "description"
|
||||
t.string "color"
|
||||
t.datetime "created_at"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue