Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample Migration File #28

Open
tarr11 opened this issue Dec 26, 2014 · 1 comment
Open

Sample Migration File #28

tarr11 opened this issue Dec 26, 2014 · 1 comment

Comments

@tarr11
Copy link

tarr11 commented Dec 26, 2014

Here's a sample migration new users can run to get the database working. Just including this here to save someone else some time...

class AddShoppingCartSchema < ActiveRecord::Migration
  def change
    create_table :carts do |t|

    end
    create_table :cart_items do |t|
      t.shopping_cart_item_fields # Creates the cart items fields
    end
  end
end
@grillermo
Copy link

It doesnt specify the field's type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants