diff options
author | tony <tony> | 2009-03-04 11:26:35 +0000 |
---|---|---|
committer | tony <tony> | 2009-03-04 11:26:35 +0000 |
commit | 407b762bf366854fbe0dcca50a3e48c5af0eab1e (patch) | |
tree | c9e6cc6adedf79eb46187895eabc657cf80b2467 /db/migrate | |
parent | 010e1f75aa4e9697b09ebc7947e0adc4119ab298 (diff) |
Add publication scheme for public bodies. (New database column and admin
interface only; public display can come later.)
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/072_add_publication_scheme.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/072_add_publication_scheme.rb b/db/migrate/072_add_publication_scheme.rb new file mode 100644 index 000000000..5040d1709 --- /dev/null +++ b/db/migrate/072_add_publication_scheme.rb @@ -0,0 +1,12 @@ +class AddPublicationScheme < ActiveRecord::Migration + def self.up + add_column :public_bodies, :publication_scheme, :text, :null => false, :default => "" + add_column :public_body_versions, :publication_scheme, :text, :null => false, :default => "" + end + + def self.down + remove_column :public_bodies, :publication_scheme + remove_column :public_body_versions, :publication_scheme + end +end + |