Sha256: c847f6d072fc09509eeac0d32003d65e81eb112ebc72c6e2660d70b4df2a0cb0

Contents?: true

Size: 599 Bytes

Versions: 11

Compression:

Stored size: 599 Bytes

Contents

class SchedularMigrations < ActiveRecord::Migration
  def self.up
    create_table :schedular_events do |t|
      t.string   :name
      t.string   :dates
      t.text     :description
      t.timestamps
    end
    
    create_table :schedular_times do |t|
      t.datetime :value
      t.boolean  :all_day
      t.timestamps
    end
    
    create_table :schedular_events_times, :id => false do |t|
      t.integer  :time_id
      t.integer  :event_id
    end
  end

  def self.down
    drop_table :schedular_events
    drop_table :schedular_times
    drop_table :schedular_events_times
  end
end

Version data entries

11 entries across 6 versions & 1 rubygems

Version Path
schedular-0.1.7 test/rails_app/db/migrate/20100630185951_schedular_migrations.rb
schedular-0.1.5 test/rails_app/db/migrate/20100630185951_schedular_migrations.rb
schedular-0.1.5 generators/schedular_migrations/templates/schedular_migrations.rb
schedular-0.1.4 test/rails_app/db/migrate/20100630185951_schedular_migrations.rb
schedular-0.1.4 generators/schedular_migrations/templates/schedular_migrations.rb
schedular-0.1.3 test/rails_app/db/migrate/20100630185951_schedular_migrations.rb
schedular-0.1.3 generators/schedular_migrations/templates/schedular_migrations.rb
schedular-0.1.2 test/rails_app/db/migrate/20100630185951_schedular_migrations.rb
schedular-0.1.2 generators/schedular_migrations/templates/schedular_migrations.rb
schedular-0.1.1 generators/schedular_migrations/templates/schedular_migrations.rb
schedular-0.1.1 test/rails_app/db/migrate/20100630185951_schedular_migrations.rb