Class: CreateMods
- Includes:
- Six::Dbmanager::Migrate
- Defined in:
- lib/six-updater-web/db/migrate/20090826185836_create_mods.rb
Class Method Summary collapse
Methods included from Six::Dbmanager::Migrate
Class Method Details
.down ⇒ Object
17 18 19 20 21 22 |
# File 'lib/six-updater-web/db/migrate/20090826185836_create_mods.rb', line 17 def self.down drop_table :mods six_join(["mod", "repository"], :down) six_join(["mod", "sixconfig"], :down) six_join(["mod", "server"], :down) end |
.up ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/six-updater-web/db/migrate/20090826185836_create_mods.rb', line 4 def self.up create_table :mods do |t| t.string :name t. :lock_version => false end # generate the join tables six_join(["mod", "repository"]) six_join(["mod", "sixconfig"]) six_join(["mod", "server"]) end |