I have the following file named 001_create_videos.rb under db folder,
and it contains this:
class CreateVideos < ActiveRecord::Migration
def self.up
create_table :videos do |t|
t.column “texto”, :string
t.column “content_type”, :string
t.column “filename”, :string
t.column “size”, :integer
# used with thumbnails, always required
t.column "parent_id", :integer
t.column "thumbnail", :string
end
# only for db-based files
# create_table :db_files, :force => true do |t|
# t.column :data, :binary
# end
end
def self.down
drop_table :videos
# only for db-based files
# drop_table :db_files
end
end
and when I do a db:migrate it tells me this: don’t know how to build
task ‘001_create_videos.rb’
I also tried with rake db:migrate without luck.
Can anybody help me?