Sha256: 6f003d843dd86f6274263ddf0fc808f1d77fe7545b684f6572e7dbdd0de7cb89
Contents?: true
Size: 635 Bytes
Versions: 20
Compression:
Stored size: 635 Bytes
Contents
class CreateNetworks < ActiveRecord::Migration include Six::Dbmanager::Migrate def self.up create_table :networks, :id => false do |t| t.string :id, :limit => 36, :null => false, :primary => true t.string :name t.string :homepage t.boolean :disabled t.integer :priority t.timestamps :deleted_at => false, :lock_version => false end six_join(["mod", "network"], :up, true) add_column :repositories, :network_id, :string, :limit => 36 end def self.down drop_table :networks six_join(["mod", "network"], :down) remove_column :repositories, :network_id end end
Version data entries
20 entries across 20 versions & 1 rubygems