summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-11-07 20:30:52 -0700
committermo k <mo@mokhan.ca>2012-11-07 20:30:52 -0700
commit0e5ba3c4475afe2da9c88056a0b97b47fcbd832d (patch)
treea87a028a1b73fdf96f5d1e26ea55a47a8315c27a /db
parent58f0123d38833a4a73aedd2de84050fc1cf0837c (diff)
remove is_published from creation.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20121108032630_remove_is_published_from_creations.rb9
-rw-r--r--db/schema.rb3
2 files changed, 10 insertions, 2 deletions
diff --git a/db/migrate/20121108032630_remove_is_published_from_creations.rb b/db/migrate/20121108032630_remove_is_published_from_creations.rb
new file mode 100644
index 00000000..4467fb60
--- /dev/null
+++ b/db/migrate/20121108032630_remove_is_published_from_creations.rb
@@ -0,0 +1,9 @@
+class RemoveIsPublishedFromCreations < ActiveRecord::Migration
+ def up
+ remove_column :creations, :is_published
+ end
+
+ def down
+ add_column :creations, :is_published, :boolean
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 10272c5b..2231f27b 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20121108031631) do
+ActiveRecord::Schema.define(:version => 20121108032630) do
create_table "active_admin_comments", :force => true do |t|
t.integer "resource_id", :null => false
@@ -86,7 +86,6 @@ ActiveRecord::Schema.define(:version => 20121108031631) do
t.string "image"
t.boolean "is_restricted", :default => false, :null => false
t.string "watermark"
- t.boolean "is_published", :default => false
end
create_table "creations_categories", :id => false, :force => true do |t|