1
0
Fork 0
beathaven/db/schema.rb

91 lines
2.9 KiB
Ruby
Raw Normal View History

2012-08-26 23:53:30 +00:00
# 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 => 20120917185417) do
2012-08-26 23:53:30 +00:00
create_table "albums", :force => true do |t|
t.integer "artist_id"
t.string "rovi_id"
t.string "title"
t.integer "year"
2012-09-01 17:55:01 +00:00
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "is_hidden", :default => false
t.integer "image_id"
2012-08-26 23:53:30 +00:00
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 "artist_infos", :force => true do |t|
t.integer "artist_id"
t.string "lang"
t.text "bio"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
2012-08-26 23:53:30 +00:00
create_table "artists", :force => true do |t|
t.string "rovi_id"
t.string "name"
t.boolean "is_group"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "image_id"
2012-08-26 23:53:30 +00:00
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 "images", :force => true do |t|
t.text "sizes"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
2012-08-26 23:53:30 +00:00
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
2012-09-01 22:03:19 +00:00
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
2012-08-26 23:53:30 +00:00
end