new migration

This commit is contained in:
albert
2013-02-19 12:16:04 -05:00
parent 0a0d25e0a9
commit e678427ee7
2 changed files with 13 additions and 2 deletions

View File

@@ -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

View File

@@ -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');
INSERT INTO schema_migrations (version) VALUES ('20130114154400');
INSERT INTO schema_migrations (version) VALUES ('20130219171111');