diff options
author | Andrew8xx8 <avk@8xx8.ru> | 2013-03-24 22:31:14 +0400 |
---|---|---|
committer | Andrew8xx8 <avk@8xx8.ru> | 2013-03-24 22:31:14 +0400 |
commit | 5b35000f16201bd631f161ef6d79b0a77dc2c27b (patch) | |
tree | 903e41d676c1939bae2cb8d6232c7fc9380bbff5 /db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb | |
parent | bc7c5f87bbd5cc25a0aaf03e9e5ecf6a65375098 (diff) |
Snippets feature refactored. Tests now use spinach
Diffstat (limited to 'db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb')
-rw-r--r-- | db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb b/db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb new file mode 100644 index 00000000000..4c992bac4d1 --- /dev/null +++ b/db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb @@ -0,0 +1,9 @@ +class ChangeProjectIdToNullInSnipepts < ActiveRecord::Migration + def up + change_column :snippets, :project_id, :integer, :null => true + end + + def down + change_column :snippets, :project_id, :integer, :null => false + end +end |