Sha256: 6c4897247df2704cc88984235af376a91101cbb658b1c99223fc26b93e6483a3
Contents?: true
Size: 407 Bytes
Versions: 51
Compression:
Stored size: 407 Bytes
Contents
# This migration comes from erp_tech_svcs (originally 20121116151510) class CreateGroups < ActiveRecord::Migration def self.up unless table_exists?(:groups) create_table :groups do |t| t.column :description, :string t.timestamps end end end def self.down [ :groups ].each do |tbl| if table_exists?(tbl) drop_table tbl end end end end
Version data entries
51 entries across 51 versions & 17 rubygems