Skip to content

Instantly share code, notes, and snippets.

/schema.rb Secret

Created April 24, 2013 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0963ec46f079699a56a0 to your computer and use it in GitHub Desktop.
Save anonymous/0963ec46f079699a56a0 to your computer and use it in GitHub Desktop.
# 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 => 20130419154235) do
create_table "active_admin_comments", :force => true do |t|
t.string "resource_id", :null => false
t.string "resource_type", :null => false
t.integer "author_id"
t.string "author_type"
t.text "body"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "namespace"
end
add_index "active_admin_comments", ["author_type", "author_id"], :name => "index_active_admin_comments_on_author_type_and_author_id"
add_index "active_admin_comments", ["namespace"], :name => "index_active_admin_comments_on_namespace"
add_index "active_admin_comments", ["resource_type", "resource_id"], :name => "index_admin_notes_on_resource_type_and_resource_id"
create_table "admin_users", :force => true do |t|
t.string "email", :default => "", :null => false
t.string "encrypted_password", :default => "", :null => false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.integer "sign_in_count", :default => 0
t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "admin_users", ["email"], :name => "index_admin_users_on_email", :unique => true
add_index "admin_users", ["reset_password_token"], :name => "index_admin_users_on_reset_password_token", :unique => true
create_table "orders", :force => true do |t|
t.integer "user_id"
t.integer "nb_files", :default => 0
t.integer "secondes", :default => 0
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "subscription_id"
t.float "promo_id"
t.datetime "promo_end_date"
t.integer "time_left", :default => 0
end
create_table "promotions", :force => true do |t|
t.integer "subscription_id"
t.string "code"
t.float "percentage"
t.integer "duration"
t.datetime "end_date"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "servers", :force => true do |t|
t.string "name"
t.string "wsdl_url"
t.string "jeton"
t.string "ftp_url"
t.integer "ftp_port"
t.string "ftp_user"
t.string "ftp_password"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "project", :default => "global"
t.integer "max_time_estimate", :default => 0
t.integer "total_files", :default => 0
end
create_table "song_ups", :force => true do |t|
t.integer "id_job"
t.integer "transcription", :default => 0
t.integer "nb_seg", :default => 0
t.integer "server_id"
t.integer "user_id"
t.boolean "queued", :default => false
t.integer "sound_id"
t.string "name"
t.boolean "error", :default => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "time_estimate", :default => 0
t.integer "duration", :default => 0
end
create_table "sounds", :force => true do |t|
t.string "name"
t.string "fichier"
t.integer "user_id"
t.decimal "transcription", :precision => 8, :scale => 2
t.decimal "duration", :precision => 8, :scale => 2
t.string "title"
t.boolean "error", :default => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "subscriptions", :force => true do |t|
t.string "name"
t.string "type_name"
t.integer "month_duration"
t.integer "price_month"
t.float "price_out"
t.integer "trans_time"
t.integer "max_time_file"
t.text "description"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "users", :force => true do |t|
t.string "email", :default => "", :null => false
t.string "encrypted_password", :default => "", :null => false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.integer "sign_in_count", :default => 0
t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "nom"
t.string "prenom"
t.string "societe"
t.integer "tel"
t.integer "trans_simu", :default => 3
t.integer "trans_limit", :default => 0
t.boolean "cgu"
t.string "project", :default => "global"
end
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment