Sha256: 0e435ae616cd3677755057fc5da2719ec2c60507a514c238dee281a7961d1a4f
Contents?: true
Size: 531 Bytes
Versions: 2
Compression:
Stored size: 531 Bytes
Contents
class CreateVideos < ActiveRecord::Migration def self.up create_table :videos do |t| t.string :title t.timestamps end create_table :sources do |t| t.integer :video_id t.string :width t.string :height t.string :container_type t.string :video_file_name t.string :video_content_type t.integer :video_file_size t.datetime :video_updated_at end end def self.down drop_table :videos drop_table :sources end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
merrycms-0.1.7 | lib/generators/merrycms/templates/create_videos_migration.rb |
merrycms-0.1.4 | lib/generators/merrycms/templates/create_videos_migration.rb |