mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-19 13:48:09 +01:00
fix #1350 by removing admin_email from preferences model and add it as a site option in
site.yml.tmpl. This one needs running migrations
This commit is contained in:
parent
a32f928fc8
commit
bd656ee1c7
5 changed files with 17 additions and 7 deletions
9
db/migrate/20121223144702_no_default_admin_email.rb
Normal file
9
db/migrate/20121223144702_no_default_admin_email.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class NoDefaultAdminEmail < ActiveRecord::Migration
|
||||
def up
|
||||
remove_column :preferences, :admin_email
|
||||
end
|
||||
|
||||
def down
|
||||
add_column :preferences, :admin_email, :string, {:default => "butshesagirl@rousette.org.uk", :null => false}
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue