Skip to content

Commit

Permalink
Fix some deprecations and migrate schema.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
pencil committed Jul 19, 2014
1 parent c7a1489 commit d12786d
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 70 deletions.
2 changes: 2 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@

# Expands the lines which load the assets
config.assets.debug = true

config.eager_load = false
end
1 change: 1 addition & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify

config.eager_load = true
end
2 changes: 2 additions & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@

# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr

config.eager_load = false
end
140 changes: 70 additions & 70 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,101 +9,101 @@
# 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 => 20131029185928) do
ActiveRecord::Schema.define(version: 20131029185928) do

create_table "casino_login_tickets", :force => true do |t|
t.string "ticket", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
create_table "casino_login_tickets", force: true do |t|
t.string "ticket", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

add_index "casino_login_tickets", ["ticket"], :name => "index_casino_login_tickets_on_ticket", :unique => true
add_index "casino_login_tickets", ["ticket"], name: "index_casino_login_tickets_on_ticket", unique: true

create_table "casino_proxy_granting_tickets", :force => true do |t|
t.string "ticket", :null => false
t.string "iou", :null => false
t.integer "granter_id", :null => false
t.string "pgt_url", :null => false
t.string "granter_type", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
create_table "casino_proxy_granting_tickets", force: true do |t|
t.string "ticket", null: false
t.string "iou", null: false
t.integer "granter_id", null: false
t.string "pgt_url", null: false
t.string "granter_type", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

add_index "casino_proxy_granting_tickets", ["granter_type", "granter_id"], :name => "index_casino_proxy_granting_tickets_on_granter", :unique => true
add_index "casino_proxy_granting_tickets", ["granter_type", "granter_id"], :name => "index_proxy_granting_tickets_on_granter", :unique => true
add_index "casino_proxy_granting_tickets", ["iou"], :name => "index_casino_proxy_granting_tickets_on_iou", :unique => true
add_index "casino_proxy_granting_tickets", ["ticket"], :name => "index_casino_proxy_granting_tickets_on_ticket", :unique => true
add_index "casino_proxy_granting_tickets", ["ticket"], :name => "index_proxy_granting_tickets_on_ticket", :unique => true

create_table "casino_proxy_tickets", :force => true do |t|
t.string "ticket", :null => false
t.text "service", :limit => 255, :null => false
t.boolean "consumed", :default => false, :null => false
t.integer "proxy_granting_ticket_id", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
add_index "casino_proxy_granting_tickets", ["granter_type", "granter_id"], name: "index_casino_proxy_granting_tickets_on_granter", unique: true
add_index "casino_proxy_granting_tickets", ["granter_type", "granter_id"], name: "index_proxy_granting_tickets_on_granter", unique: true
add_index "casino_proxy_granting_tickets", ["iou"], name: "index_casino_proxy_granting_tickets_on_iou", unique: true
add_index "casino_proxy_granting_tickets", ["ticket"], name: "index_casino_proxy_granting_tickets_on_ticket", unique: true
add_index "casino_proxy_granting_tickets", ["ticket"], name: "index_proxy_granting_tickets_on_ticket", unique: true

create_table "casino_proxy_tickets", force: true do |t|
t.string "ticket", null: false
t.text "service", limit: 255, null: false
t.boolean "consumed", default: false, null: false
t.integer "proxy_granting_ticket_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

add_index "casino_proxy_tickets", ["proxy_granting_ticket_id"], :name => "altered_casino_proxy_tickets_on_pgt_id"
add_index "casino_proxy_tickets", ["ticket"], :name => "index_casino_proxy_tickets_on_ticket", :unique => true

create_table "casino_service_rules", :force => true do |t|
t.boolean "enabled", :default => true, :null => false
t.integer "order", :default => 10, :null => false
t.string "name", :null => false
t.string "url", :null => false
t.boolean "regex", :default => false, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
add_index "casino_proxy_tickets", ["proxy_granting_ticket_id"], name: "altered_casino_proxy_tickets_on_pgt_id"
add_index "casino_proxy_tickets", ["ticket"], name: "index_casino_proxy_tickets_on_ticket", unique: true

create_table "casino_service_rules", force: true do |t|
t.boolean "enabled", default: true, null: false
t.integer "order", default: 10, null: false
t.string "name", null: false
t.string "url", null: false
t.boolean "regex", default: false, null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

add_index "casino_service_rules", ["url"], :name => "index_casino_service_rules_on_url", :unique => true
add_index "casino_service_rules", ["url"], name: "index_casino_service_rules_on_url", unique: true

create_table "casino_service_tickets", :force => true do |t|
t.string "ticket", :null => false
t.text "service", :limit => 255, :null => false
create_table "casino_service_tickets", force: true do |t|
t.string "ticket", null: false
t.text "service", limit: 255, null: false
t.integer "ticket_granting_ticket_id"
t.boolean "consumed", :default => false, :null => false
t.boolean "issued_from_credentials", :default => false, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "consumed", default: false, null: false
t.boolean "issued_from_credentials", default: false, null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

add_index "casino_service_tickets", ["ticket"], :name => "index_casino_service_tickets_on_ticket", :unique => true
add_index "casino_service_tickets", ["ticket_granting_ticket_id"], :name => "altered_casino_service_tickets_on_tgt_id"
add_index "casino_service_tickets", ["ticket"], name: "index_casino_service_tickets_on_ticket", unique: true
add_index "casino_service_tickets", ["ticket_granting_ticket_id"], name: "altered_casino_service_tickets_on_tgt_id"

create_table "casino_ticket_granting_tickets", :force => true do |t|
t.string "ticket", :null => false
create_table "casino_ticket_granting_tickets", force: true do |t|
t.string "ticket", null: false
t.string "user_agent"
t.integer "user_id", :null => false
t.boolean "awaiting_two_factor_authentication", :default => false, :null => false
t.boolean "long_term", :default => false, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "user_id", null: false
t.boolean "awaiting_two_factor_authentication", default: false, null: false
t.boolean "long_term", default: false, null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

add_index "casino_ticket_granting_tickets", ["ticket"], :name => "index_casino_ticket_granting_tickets_on_ticket", :unique => true
add_index "casino_ticket_granting_tickets", ["ticket"], name: "index_casino_ticket_granting_tickets_on_ticket", unique: true

create_table "casino_two_factor_authenticators", :force => true do |t|
t.integer "user_id", :null => false
t.string "secret", :null => false
t.boolean "active", :default => false, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
create_table "casino_two_factor_authenticators", force: true do |t|
t.integer "user_id", null: false
t.string "secret", null: false
t.boolean "active", default: false, null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

add_index "casino_two_factor_authenticators", ["user_id"], :name => "index_casino_two_factor_authenticators_on_user_id"
add_index "casino_two_factor_authenticators", ["user_id"], name: "index_casino_two_factor_authenticators_on_user_id"

create_table "casino_users", :force => true do |t|
t.string "authenticator", :null => false
t.string "username", :null => false
create_table "casino_users", force: true do |t|
t.string "authenticator", null: false
t.string "username", null: false
t.text "extra_attributes"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

add_index "casino_users", ["authenticator", "username"], :name => "index_casino_users_on_authenticator_and_username", :unique => true
add_index "casino_users", ["authenticator", "username"], name: "index_casino_users_on_authenticator_and_username", unique: true

end

0 comments on commit d12786d

Please sign in to comment.