Sha256: 62cbb4126d17f5f43174ce384cd211b550d3455226855c2fc6ed27739c9b0409
Contents?: true
Size: 293 Bytes
Versions: 4
Compression:
Stored size: 293 Bytes
Contents
class CreateThings < ActiveRecord::Migration def self.up create_table :things, :id => false do |t| t.string :name t.timestamps end add_index :things, :name, :unique => true end def self.down drop_table :things end end class Thing < ActiveRecord::Base end
Version data entries
4 entries across 4 versions & 1 rubygems