cirandas.net

ref: master

db/migrate/20120713073641_create_licenses.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
class CreateLicenses < ActiveRecord::Migration
  def self.up
    create_table :licenses do |t|
      t.string      :name, :null => false
      t.string      :slug, :null => false
      t.string      :url
      t.references  :environment, :null => false
    end
  end

  def self.down
    drop_table :licenses
  end
end