From e678427ee7d324b8623714d23a15a08d491742d8 Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 19 Feb 2013 12:16:04 -0500 Subject: [PATCH] new migration --- .../20130219171111_change_uploads_source_to_text.rb | 9 +++++++++ db/structure.sql | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20130219171111_change_uploads_source_to_text.rb diff --git a/db/migrate/20130219171111_change_uploads_source_to_text.rb b/db/migrate/20130219171111_change_uploads_source_to_text.rb new file mode 100644 index 000000000..156db92fa --- /dev/null +++ b/db/migrate/20130219171111_change_uploads_source_to_text.rb @@ -0,0 +1,9 @@ +class ChangeUploadsSourceToText < ActiveRecord::Migration + def up + execute "alter table uploads alter column source type text" + end + + def down + execute "alter table uploads alter column source type varchar(255)" + end +end diff --git a/db/structure.sql b/db/structure.sql index a2593b436..27274aadb 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -2463,7 +2463,7 @@ ALTER SEQUENCE tags_id_seq OWNED BY tags.id; CREATE TABLE uploads ( id integer NOT NULL, - source character varying(255), + source text, file_path character varying(255), content_type character varying(255), rating character(1) NOT NULL, @@ -6175,4 +6175,6 @@ INSERT INTO schema_migrations (version) VALUES ('20111101212358'); INSERT INTO schema_migrations (version) VALUES ('20130106210658'); -INSERT INTO schema_migrations (version) VALUES ('20130114154400'); \ No newline at end of file +INSERT INTO schema_migrations (version) VALUES ('20130114154400'); + +INSERT INTO schema_migrations (version) VALUES ('20130219171111'); \ No newline at end of file