aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/073_add_ban_user.rb10
-rw-r--r--db/schema.rb3
2 files changed, 12 insertions, 1 deletions
diff --git a/db/migrate/073_add_ban_user.rb b/db/migrate/073_add_ban_user.rb
new file mode 100644
index 000000000..15a1ea121
--- /dev/null
+++ b/db/migrate/073_add_ban_user.rb
@@ -0,0 +1,10 @@
+class AddBanUser < ActiveRecord::Migration
+ def self.up
+ add_column :users, :ban_text, :text, :null => false, :default => ""
+ end
+
+ def self.down
+ remove_column :users, :ban_text
+ end
+end
+
diff --git a/db/schema.rb b/db/schema.rb
index 363e36a76..3096dd422 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 72) do
+ActiveRecord::Schema.define(:version => 73) do
create_table "acts_as_xapian_jobs", :force => true do |t|
t.string "model", :null => false
@@ -221,6 +221,7 @@ ActiveRecord::Schema.define(:version => 72) do
t.text "url_name", :null => false
t.datetime "last_daily_track_email", :default => '2000-01-01 00:00:00'
t.string "admin_level", :default => "none", :null => false
+ t.text "ban_text", :default => "", :null => false
end
add_index "users", ["url_name"], :name => "index_users_on_url_name", :unique => true