2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2012-01-11 13:58:13 +00:00
|
|
|
class CreateSettingsNotifiers < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :settings_notifiers do |t|
|
|
|
|
t.integer :user_id, :null => false
|
2012-01-13 15:07:01 +00:00
|
|
|
|
|
|
|
t.boolean :can_notify, :default => true
|
2012-01-11 13:58:13 +00:00
|
|
|
t.boolean :new_comment, :default => true
|
|
|
|
t.boolean :new_comment_reply, :default => true
|
|
|
|
t.boolean :new_issue, :default => true
|
|
|
|
t.boolean :issue_assign, :default => true
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :settings_notifiers
|
|
|
|
end
|
|
|
|
end
|