Sha256: 983c5b26619229a76af78097fdcc000a08a86d72da1cd89d74134fb6fc3f3d3f
Contents?: true
Size: 1.58 KB
Versions: 30
Compression:
Stored size: 1.58 KB
Contents
class Bare25Resource < ActiveRecord::Base include BareMigration end class AddItunesMetadata < ActiveRecord::Migration def self.up STDERR.puts "Adding podcast metadata fields" modify_tables_and_update([:add_column, :resources, :itunes_metadata, :boolean], [:add_column, :resources, :itunes_author, :string], [:add_column, :resources, :itunes_subtitle, :string], [:add_column, :resources, :itunes_duration, :integer], [:add_column, :resources, :itunes_summary, :text], [:add_column, :resources, :itunes_keywords, :string], [:add_column, :resources, :itunes_category, :string], [:add_column, :resources, :itunes_explicit, :boolean]) end def self.down STDERR.puts "Removing podcast metadata fields" modify_tables_and_update([:remove_column, :resources, :itunes_metadata, :boolean], [:remove_column, :resources, :itunes_author, :string], [:remove_column, :resources, :itunes_subtitle, :string], [:remove_column, :resources, :itunes_duration, :integer], [:remove_column, :resources, :itunes_summary, :text], [:remove_column, :resources, :itunes_keywords, :string], [:remove_column, :resources, :itunes_category, :string], [:remove_column, :resources, :itunes_explicit, :boolean]) end end
Version data entries
30 entries across 30 versions & 1 rubygems