summaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/001_setup.rb2
-rw-r--r--db/migrate/075_add_members_mail_notification.rb9
2 files changed, 10 insertions, 1 deletions
diff --git a/db/migrate/001_setup.rb b/db/migrate/001_setup.rb
index 8b299eb1e..1160dd5ef 100644
--- a/db/migrate/001_setup.rb
+++ b/db/migrate/001_setup.rb
@@ -284,7 +284,7 @@ class Setup < ActiveRecord::Migration
Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322
# create default administrator account
- user = User.create :firstname => "redMine", :lastname => "Admin", :mail => "admin@somenet.foo", :mail_notification => true, :language => "en"
+ user = User.create :firstname => "Redmine", :lastname => "Admin", :mail => "admin@somenet.foo", :mail_notification => true, :language => "en"
user.login = "admin"
user.password = "admin"
user.admin = true
diff --git a/db/migrate/075_add_members_mail_notification.rb b/db/migrate/075_add_members_mail_notification.rb
new file mode 100644
index 000000000..d83ba8dd0
--- /dev/null
+++ b/db/migrate/075_add_members_mail_notification.rb
@@ -0,0 +1,9 @@
+class AddMembersMailNotification < ActiveRecord::Migration
+ def self.up
+ add_column :members, :mail_notification, :boolean, :default => false, :null => false
+ end
+
+ def self.down
+ remove_column :members, :mail_notification
+ end
+end