ref: master
db/migrate/004_create_domains.rb
1 2 3 4 5 6 7 8 9 10 11 12 13
class CreateDomains < ActiveRecord::Migration def self.up create_table :domains do |t| t.column :name, :string t.column :owner_type, :string t.column :owner_id, :integer end end def self.down drop_table :domains end end