diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/085_draft_profile_photo.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 5 |
2 files changed, 12 insertions, 2 deletions
diff --git a/db/migrate/085_draft_profile_photo.rb b/db/migrate/085_draft_profile_photo.rb new file mode 100644 index 000000000..c0b507485 --- /dev/null +++ b/db/migrate/085_draft_profile_photo.rb @@ -0,0 +1,9 @@ +class DraftProfilePhoto < ActiveRecord::Migration + def self.up + add_column :profile_photos, :draft, :boolean, :default => false, :null => false + end + + def self.down + raise "No reverse migration" + end +end diff --git a/db/schema.rb b/db/schema.rb index f2a8812b0..a6d5e8f55 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 => 84) do +ActiveRecord::Schema.define(:version => 85) do create_table "acts_as_xapian_jobs", :force => true do |t| t.string "model", :null => false @@ -144,8 +144,9 @@ ActiveRecord::Schema.define(:version => 84) do add_index "post_redirects", ["updated_at"], :name => "index_post_redirects_on_updated_at" create_table "profile_photos", :force => true do |t| - t.binary "data", :null => false + t.binary "data", :null => false t.integer "user_id" + t.boolean "draft", :default => false, :null => false end create_table "public_bodies", :force => true do |t| |