mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
banned_at shouldnt be neccessary
This commit is contained in:
parent
7445f8006b
commit
8e161c0099
2 changed files with 2 additions and 11 deletions
|
@ -75,7 +75,7 @@ Sequel::Migrator.apply DB, './migrations'
|
|||
Stripe.api_key = $config['stripe_api_key']
|
||||
|
||||
Dir.glob('models/*.rb').each {|m| require File.join(DIR_ROOT, "#{m}") }
|
||||
DB.loggers << Logger.new(STDOUT) if ENV['RACK_ENV'] == 'development'
|
||||
#DB.loggers << Logger.new(STDOUT) if ENV['RACK_ENV'] == 'development'
|
||||
|
||||
if ENV['RACK_ENV'] == 'development'
|
||||
# If new, throw up a random Server for development.
|
||||
|
@ -100,4 +100,4 @@ end
|
|||
Sinatra::Application.set :erb, escape_html: true
|
||||
|
||||
# Session fix for Internet Fucking Explorer https://github.com/rkh/rack-protection/issues/11
|
||||
Sinatra::Application.set :protection, except: :session_hijacking
|
||||
Sinatra::Application.set :protection, except: :session_hijacking
|
|
@ -1,9 +0,0 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_column :sites, :banned_at, :timestamp
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_column :sites, :banned_at
|
||||
}
|
||||
end
|
Loading…
Add table
Reference in a new issue