Sha256: 6615e0e9d65cfc7cd98a3ba08f7807f76c13f2d0bfc09ed0f1dc9921508435fc
Contents?: true
Size: 339 Bytes
Versions: 2
Compression:
Stored size: 339 Bytes
Contents
class CreateTags < ActiveRecord::Migration def self.up create_table :tags do |t| t.column :name, :string end create_table :photos_tags, :id => false do |t| t.column :photo_id, :integer t.column :tag_id, :integer end end def self.down drop_table :tags drop_table :photos_tags end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
resource_controller_views-0.6.6.views2 | test/db/migrate/006_create_tags.rb |
resource_controller_views-0.6.6 | test/db/migrate/006_create_tags.rb |