Sha256: 7622e337f9ff91adf3a52dd6b3cfd8a695d5a8cd6227b56781345b83d27e3ad7
Contents?: true
Size: 364 Bytes
Versions: 10
Compression:
Stored size: 364 Bytes
Contents
class CreateMetroAreas < ActiveRecord::Migration def self.up create_table :metro_areas do |t| t.column :name, :string t.column :state_id, :integer t.column :country_id, :integer end add_column "users", "metro_area_id", :integer end def self.down drop_table :metro_areas remove_column "users", "metro_area_id" end end
Version data entries
10 entries across 10 versions & 1 rubygems