Skip to content

Instantly share code, notes, and snippets.

@adamhooper
Created April 1, 2016 15:06
Show Gist options
  • Save adamhooper/f292724fd283543074d805e5a27f308b to your computer and use it in GitHub Desktop.
Save adamhooper/f292724fd283543074d805e5a27f308b to your computer and use it in GitHub Desktop.
class Supplier < ActiveRecord::Base
end
class CreateSuppliers < ActiveRecord::Migration
def change
create_table :suppliers do |t|
t.string :name
t.string :account_number
t.timestamps null: false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment