Sha256: b542ab7670228a0e811811a53173db60833bb5b7d15dc4e3decddc39eb3301b0

Contents?: true

Size: 202 Bytes

Versions: 9

Compression:

Stored size: 202 Bytes

Contents

class ParentAsSetup < ActiveRecord::Migration
  def change
    remove_column :resources, :memo_id
    add_column :projects, :resource_id, :integer
    add_column :memos, :project_id, :integer
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
monarchy-2.2.1 dummy/db/migrate/20160502212213_parent_as_setup.rb
monarchy-2.2.0 dummy/db/migrate/20160502212213_parent_as_setup.rb
monarchy-2.1.0 dummy/db/migrate/20160502212213_parent_as_setup.rb
monarchy-2.0.8 dummy/db/migrate/20160502212213_parent_as_setup.rb
monarchy-2.0.7 dummy/db/migrate/20160502212213_parent_as_setup.rb
monarchy-2.0.6 dummy/db/migrate/20160502212213_parent_as_setup.rb
monarchy-2.0.5 dummy/db/migrate/20160502212213_parent_as_setup.rb
monarchy-2.0.4 dummy/db/migrate/20160502212213_parent_as_setup.rb
monarchy-2.0.0.pre.beta.1 dummy/db/migrate/20160502212213_parent_as_setup.rb