78 lines
2.5 KiB
Ruby
78 lines
2.5 KiB
Ruby
# encoding: UTF-8
|
|
# This file is auto-generated from the current state of the database. Instead
|
|
# of editing this file, please use the migrations feature of Active Record to
|
|
# incrementally modify your database, and then regenerate this schema definition.
|
|
#
|
|
# Note that this schema.rb definition is the authoritative source for your
|
|
# database schema. If you need to create the application database on another
|
|
# system, you should be using db:schema:load, not running all the migrations
|
|
# 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.
|
|
|
|
ActiveRecord::Schema.define(:version => 20120901191655) do
|
|
|
|
create_table "albums", :force => true do |t|
|
|
t.integer "artist_id"
|
|
t.string "rovi_id"
|
|
t.string "title"
|
|
t.integer "year"
|
|
t.string "pic"
|
|
t.datetime "created_at", :null => false
|
|
t.datetime "updated_at", :null => false
|
|
t.boolean "is_hidden", :default => false
|
|
end
|
|
|
|
create_table "artist_genres", :force => true do |t|
|
|
t.integer "artist_id"
|
|
t.integer "genre_id"
|
|
t.datetime "created_at", :null => false
|
|
t.datetime "updated_at", :null => false
|
|
end
|
|
|
|
create_table "artists", :force => true do |t|
|
|
t.string "rovi_id"
|
|
t.string "name"
|
|
t.boolean "is_group"
|
|
t.text "bio"
|
|
t.string "pic"
|
|
t.datetime "created_at", :null => false
|
|
t.datetime "updated_at", :null => false
|
|
end
|
|
|
|
create_table "genres", :force => true do |t|
|
|
t.string "rovi_id"
|
|
t.string "name"
|
|
t.datetime "created_at", :null => false
|
|
t.datetime "updated_at", :null => false
|
|
end
|
|
|
|
create_table "performers", :force => true do |t|
|
|
t.integer "track_id"
|
|
t.integer "artist_id"
|
|
t.datetime "created_at", :null => false
|
|
t.datetime "updated_at", :null => false
|
|
end
|
|
|
|
create_table "tracks", :force => true do |t|
|
|
t.integer "album_id"
|
|
t.string "rovi_id"
|
|
t.integer "disc_id"
|
|
t.integer "position"
|
|
t.string "title"
|
|
t.integer "duration"
|
|
t.datetime "created_at", :null => false
|
|
t.datetime "updated_at", :null => false
|
|
end
|
|
|
|
create_table "users", :force => true do |t|
|
|
t.string "name"
|
|
t.integer "vk_id"
|
|
t.string "lang", :default => "ru"
|
|
t.datetime "created_at", :null => false
|
|
t.datetime "updated_at", :null => false
|
|
end
|
|
|
|
end
|