Sha256: 2bad44a7ef61a224f41c3a40afc74183aae14b4ab0803cf9bfffc285da56593f
Contents?: true
Size: 662 Bytes
Versions: 4
Compression:
Stored size: 662 Bytes
Contents
class CreateTestResources < ActiveRecord::Migration def self.up create_table :documents do |t| t.string :name t.string :surname t.boolean :keep_alive t.timestamps end create_table :sections do |t| t.string :title t.integer :document_id t.timestamps end create_table :chapters do |t| t.string :title t.timestamps end create_table :users do |t| t.string :email t.string :firstname t.string :lastname t.timestamps end end def self.down drop_table :users drop_table :chapters drop_table :sections drop_table :documents end end
Version data entries
4 entries across 4 versions & 1 rubygems