diff --git a/Rakefile b/Rakefile index 7a36cca..ce9f184 100644 --- a/Rakefile +++ b/Rakefile @@ -4,4 +4,4 @@ require File.expand_path('../config/application', __FILE__) -Abidownloads::Application.load_tasks +Pixelhum::Application.load_tasks diff --git a/config.ru b/config.ru index 7e9af2e..570b831 100644 --- a/config.ru +++ b/config.ru @@ -1,4 +1,4 @@ # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) -run Abidownloads::Application +run Pixelhum::Application diff --git a/config/application.rb b/config/application.rb index 0aaa3c7..edaa6df 100644 --- a/config/application.rb +++ b/config/application.rb @@ -9,7 +9,7 @@ if defined?(Bundler) # Bundler.require(:default, :assets, Rails.env) end -module Abidownloads +module Pixelhum class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers diff --git a/config/environment.rb b/config/environment.rb index 0fce148..97e6642 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -2,4 +2,4 @@ require File.expand_path('../application', __FILE__) # Initialize the rails application -Abidownloads::Application.initialize! +Pixelhum::Application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb index 063bdf6..36c61c2 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,4 +1,4 @@ -Abidownloads::Application.configure do +Pixelhum::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on diff --git a/config/environments/production.rb b/config/environments/production.rb index 833091c..d1f8369 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,4 +1,4 @@ -Abidownloads::Application.configure do +Pixelhum::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests diff --git a/config/environments/test.rb b/config/environments/test.rb index 6346c1c..9e2e53c 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,4 +1,4 @@ -Abidownloads::Application.configure do +Pixelhum::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index 28509ab..1eac76d 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -4,4 +4,4 @@ # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. -Abidownloads::Application.config.secret_token = '0c32dab080a056a39d8f387a5ebef9f286b0d4c02f9d07bd3b59b4ab9ee09447538116ea3f4c66d66d4ef20229379ef3962a76ee8a878caa85af09c25a5239a0' +Pixelhum::Application.config.secret_token = '0c32dab080a056a39d8f387a5ebef9f286b0d4c02f9d07bd3b59b4ab9ee09447538116ea3f4c66d66d4ef20229379ef3962a76ee8a878caa85af09c25a5239a0' diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index db38684..cfeed16 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,8 +1,8 @@ # Be sure to restart your server when you modify this file. -Abidownloads::Application.config.session_store :cookie_store, key: '_abidownloads_session' +# Pixelhum::Application.config.session_store :cookie_store, key: '_abidownloads_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rails generate session_migration") -# Abidownloads::Application.config.session_store :active_record_store +Pixelhum::Application.config.session_store :active_record_store diff --git a/config/routes.rb b/config/routes.rb index 1f7eae4..069183d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,4 @@ -Abidownloads::Application.routes.draw do +Pixelhum::Application.routes.draw do as :admin_user do match '/admin_users/confirmation' => 'admin/confirmations#update', :via => :put, :as => :update_user_confirmation end diff --git a/db/migrate/20111013085444_add_sessions_table.rb b/db/migrate/20111013085444_add_sessions_table.rb new file mode 100644 index 0000000..fd942cc --- /dev/null +++ b/db/migrate/20111013085444_add_sessions_table.rb @@ -0,0 +1,16 @@ +class AddSessionsTable < ActiveRecord::Migration + def up + create_table :sessions do |t| + t.string :session_id, :null => false + t.text :data + t.timestamps + end + + add_index :sessions, :session_id + add_index :sessions, :updated_at + end + + def down + drop_table :sessions + end +end diff --git a/db/schema.rb b/db/schema.rb index 87d5a77..fb3c703 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20111007155450) do +ActiveRecord::Schema.define(:version => 20111013085444) do create_table "admin_users", :force => true do |t| t.string "email", :default => "", :null => false @@ -58,4 +58,14 @@ ActiveRecord::Schema.define(:version => 20111007155450) do t.datetime "updated_at" end + 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" + end