Sha256: f5bf5316f631ed04baeea6040edccf33ba9ca8ff1e9818b5416762581a514246
Contents?: true
Size: 606 Bytes
Versions: 3
Compression:
Stored size: 606 Bytes
Contents
class CreateVegetables < ActiveRecord::Migration def change create_table :vegetables do |t| t.string :name t.decimal :price t.string :comment end set_table_comment :vegetables, 'Healthy' set_column_comment :vegetables, :name, 'The name of the vegetable' set_column_comments :vegetables, :price => 'vegetable cost', :comment => 'thoughts' change_table :vegetables do |t| t.set_table_comment 'Healthy and delicious' end add_index :vegetables, :name, :unique => true set_index_comment :index_vegetables_on_name, "Comment on index" end end
Version data entries
3 entries across 3 versions & 1 rubygems