Sha256: 13fb0b777025033d5a0df58153ee42803a6f034c515b1d88e5f15d3cf6ffbf59

Contents?: true

Size: 530 Bytes

Versions: 74

Compression:

Stored size: 530 Bytes

Contents

class CreateMods < ActiveRecord::Migration
  include Six::Dbmanager::Migrate

  def self.up
    create_table :mods do |t|
      t.string :name

      t.timestamps :lock_version => false
    end

    # generate the join tables
    six_join(["mod", "repository"])
    six_join(["mod", "sixconfig"])
    six_join(["mod", "server"])
  end

  def self.down
    drop_table :mods
    six_join(["mod", "repository"], :down)
    six_join(["mod", "sixconfig"], :down)
    six_join(["mod", "server"], :down)
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
six-updater-web-0.24.15 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.14 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.13 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.12 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.11 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.10 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.9 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.8 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.7 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.6 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.5 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.4 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.3 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.2 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.1 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.24.0 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.23.7 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.23.6 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.23.5 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
six-updater-web-0.23.4 lib/six-updater-web/db/migrate/20090826185836_create_mods.rb