added supporter thing to users

This commit is contained in:
nilsding 2015-01-03 00:15:09 +01:00
parent dd21ce344b
commit 5af3f1a109
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddSupporterToUsers < ActiveRecord::Migration
def change
add_column :users, :supporter, :boolean, default: false
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20141229133149) do
ActiveRecord::Schema.define(version: 20150102231343) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -168,6 +168,7 @@ ActiveRecord::Schema.define(version: 20141229133149) do
t.integer "crop_y"
t.integer "crop_w"
t.integer "crop_h"
t.boolean "supporter", default: false
end
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree