2012-01-11 13:58:13 +00:00
|
|
|
class CreateSettingsNotifiers < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :settings_notifiers do |t|
|
2014-01-21 04:51:49 +00:00
|
|
|
t.integer :user_id, null: false
|
2012-01-13 15:07:01 +00:00
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
t.boolean :can_notify, default: true
|
|
|
|
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
|
2012-01-11 13:58:13 +00:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :settings_notifiers
|
|
|
|
end
|
|
|
|
end
|