Sha256: 57b5e447498a6de5f929c0b1b0eec1dc0f749056e4db7ee0db680a72826ea9ab
Contents?: true
Size: 483 Bytes
Versions: 10
Compression:
Stored size: 483 Bytes
Contents
class CreateEventsTable < ActiveRecord::Migration def self.up create_table :events do |t| t.column :name, :string t.column :created_at, :datetime t.column :updated_at, :datetime t.column :user_id, :integer t.column :start_time, :datetime t.column :end_time, :datetime t.column :description, :text t.column :metro_area_id, :integer t.column :location, :string end end def self.down drop_table :events end end
Version data entries
10 entries across 10 versions & 1 rubygems