Sha256: 3662a3c2c605ad127a0518b15bec5977f1558c2d3d9a022038942563d6f54b29
Contents?: true
Size: 952 Bytes
Versions: 2
Compression:
Stored size: 952 Bytes
Contents
class CreateTables < ActiveRecord::Migration def self.up create_table 'users', force: true do |t| t.string 'first_name' t.string 'last_name' t.integer 'age' t.boolean 'active' t.datetime 'created_at' t.datetime 'updated_at' end create_table 'tasks', force: true do |t| t.integer 'user_id' t.string 'heading' t.string 'description' t.integer 'time_spent' t.boolean 'done' t.datetime 'created_at' t.datetime 'updated_at' end create_table 'profiles', force: true do |t| t.integer 'user_id' t.string 'avatar' t.string 'homepage' t.datetime 'created_at' t.datetime 'updated_at' end create_table :untoucheds do |t| t.string 'nothing' t.timestamps end end def self.down drop_table :untoucheds drop_table :profiles drop_table :tasks drop_table :users end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_api-1.0.1 | spec/active_record_dummy/db/migrate/20110214201640_create_tables.rb |
acts_as_api-1.0.0 | spec/active_record_dummy/db/migrate/20110214201640_create_tables.rb |