added bans
This commit is contained in:
17
db/migrate/20100215230642_create_user_feedback.rb
Normal file
17
db/migrate/20100215230642_create_user_feedback.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class CreateUserFeedback < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :user_feedback do |t|
|
||||
t.column :user_id, :integer, :null => false
|
||||
t.column :creator_id, :integer, :null => false
|
||||
t.column :is_positive, :boolean, :null => false
|
||||
t.column :body, :text, :null => false
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :user_feedback, :user_id
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :user_feedback
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user