summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-07-05 17:03:12 -0600
committermo khan <mo@mokhan.ca>2014-07-05 17:03:12 -0600
commit825682089b7db7a587ee870c0d4bd09de6998160 (patch)
treef8a677cb11c25313c628aafc4d8699b5a8f4eafd /db
parente6d58e34245e41381d522c240600ea536ad70e5d (diff)
remove is_restricted.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20140705225150_drop_is_restricted_from_creations.rb5
-rw-r--r--db/schema.rb3
2 files changed, 6 insertions, 2 deletions
diff --git a/db/migrate/20140705225150_drop_is_restricted_from_creations.rb b/db/migrate/20140705225150_drop_is_restricted_from_creations.rb
new file mode 100644
index 00000000..24e4f998
--- /dev/null
+++ b/db/migrate/20140705225150_drop_is_restricted_from_creations.rb
@@ -0,0 +1,5 @@
+class DropIsRestrictedFromCreations < ActiveRecord::Migration
+ def change
+ remove_column :creations, :is_restricted
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index eb2902ac..9c08ce3e 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: 20140607232108) do
+ActiveRecord::Schema.define(version: 20140705225150) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -65,7 +65,6 @@ ActiveRecord::Schema.define(version: 20140607232108) do
t.datetime "updated_at"
t.integer "user_id"
t.string "image"
- t.boolean "is_restricted", default: false, null: false
t.string "watermark"
t.integer "photos_count", default: 0
t.integer "favorites_count", default: 0