Sha256: da15b669f96b69ca9e6b8c0d679ee1e514ab4bd46d1fea5b0ed5cf495cffae5e
Contents?: true
Size: 168 Bytes
Versions: 2
Compression:
Stored size: 168 Bytes
Contents
class AddAdminToUsers < ActiveRecord::Migration def self.up add_column :users, :admin, :boolean end def self.down remove_column :users, :admin end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tft_rails-0.6.1 | lib/generators/chapter10/solutions/snippets/migration_add_admin_to_users.rb |
tft_rails-0.6.0 | lib/generators/chapter10/solutions/snippets/migration_add_admin_to_users.rb |