Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateSubmissions < ActiveRecord::Migration
- def change
- create_table :submissions do |t|
- t.text :content
- t.integer :valoracio, :default => 0
- t.string :titol
- t.date :created_at
- t.string :url
- t.references :user, index: true, foreign_key: true
- t.timestamps null: false
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement