diff --git a/db/migrate/20150102231343_add_supporter_to_users.rb b/db/migrate/20150102231343_add_supporter_to_users.rb new file mode 100644 index 00000000..7f691fa9 --- /dev/null +++ b/db/migrate/20150102231343_add_supporter_to_users.rb @@ -0,0 +1,5 @@ +class AddSupporterToUsers < ActiveRecord::Migration + def change + add_column :users, :supporter, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index a5bcd502..a71209be 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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