diff --git a/db/schema.rb b/db/schema.rb index 5b8bacb..902c924 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,28 +9,31 @@ # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # -# It's strongly recommended to check this file into your version control system. +# It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(:version => 20110916003929) do +ActiveRecord::Schema.define(version: 20110916003929) do - create_table "playlists", :force => true do |t| + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "playlists", force: true do |t| t.integer "user_id" t.string "name" t.datetime "created_at" t.datetime "updated_at" end - create_table "sessions", :force => true do |t| - t.string "session_id", :null => false + create_table "sessions", force: true do |t| + t.string "session_id", null: false t.text "data" t.datetime "created_at" t.datetime "updated_at" end - add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id" - add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at" + add_index "sessions", ["session_id"], name: "index_sessions_on_session_id", unique: true, using: :btree + add_index "sessions", ["updated_at"], name: "index_sessions_on_updated_at", using: :btree - create_table "sounds", :force => true do |t| + create_table "sounds", force: true do |t| t.integer "track_id" t.string "sha256" t.string "mime_type" @@ -38,19 +41,19 @@ ActiveRecord::Schema.define(:version => 20110916003929) do t.datetime "updated_at" end - create_table "tracks", :force => true do |t| + create_table "tracks", force: true do |t| t.string "name" t.datetime "created_at" t.datetime "updated_at" end - create_table "users", :force => true do |t| + create_table "users", force: true do |t| t.string "email" t.string "password_hash" t.datetime "created_at" t.datetime "updated_at" end - add_index "users", ["email"], :name => "index_users_on_email", :unique => true + add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree end