Sha256: 32b38d5700f77ce3823ead2e53048e5230af65a6d8d0182c5c94875210901580

Contents?: true

Size: 617 Bytes

Versions: 6

Compression:

Stored size: 617 Bytes

Contents

# # The code below create a table name example
# # As best practice name this file with a prefix index like 001_create_example.rb and the next migration 002.... and so on, this will help you to keep track over the time.
# # Please refer to Rails' documentation
#
# class CreateExample < ActiveRecord::Migration
#   def self.up
#     #primary key id is created automatically by ActiveRecord::Migration
#     create_table :example do |t|
#       t.string :name
#       t.string :tag
#       t.string :type
#     end
# 
#     add_index :example, :name
#   end
# 
#   def self.down
#     drop_table :example
#   end
# end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bio-gem-1.1.1 lib/bio-gem/templates/migration
bio-gem-1.1.0 lib/bio-gem/templates/migration
bio-gem-1.0.0 lib/bio-gem/templates/migration
bio-gem-0.3.2 lib/bio-gem/templates/migration
bio-gem-0.3.1 lib/bio-gem/templates/migration
bio-gem-0.3.0 lib/bio-gem/templates/migration