diff options
author | zhitomirskiyi <ilya@joindiaspora.com> | 2011-03-29 04:15:54 +0400 |
---|---|---|
committer | zhitomirskiyi <ilya@joindiaspora.com> | 2011-03-31 03:43:28 +0400 |
commit | fb8b8ab7fcf740cde5f760705e6144be49aa38ea (patch) | |
tree | 5a78cc334c2ca1a3cc30874c160fd450235ef7be /db | |
parent | 597e71c21676da3a8ba4edf5c87baa5f16383e80 (diff) |
wip holding off until the follow model is done
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20110328175936_add_hidden_to_post_visibilities.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20110328175936_add_hidden_to_post_visibilities.rb b/db/migrate/20110328175936_add_hidden_to_post_visibilities.rb new file mode 100644 index 000000000..5ef34a810 --- /dev/null +++ b/db/migrate/20110328175936_add_hidden_to_post_visibilities.rb @@ -0,0 +1,9 @@ +class AddHiddenToPostVisibilities < ActiveRecord::Migration + def self.up + add_column :post_visibilities, :hidden, :boolean, :defalut => false, :null => false + end + + def self.down + remove_column :post_visibilities, :hidden + end +end diff --git a/db/schema.rb b/db/schema.rb index e484b8f48..6195f73fc 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -215,6 +215,7 @@ ActiveRecord::Schema.define(:version => 20110330230206) do t.integer "post_id", :null => false t.datetime "created_at" t.datetime "updated_at" + t.boolean "hidden", :null => false t.integer "contact_id", :null => false end |