Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix migration #207

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db/migrate/20131124225118_create_talks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTalks < ActiveRecord::Migration
class CreateTalks < ActiveRecord::Migration[7.0]
def change
create_table :talks do |t|
t.string :title
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131201175242_create_videos.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateVideos < ActiveRecord::Migration
class CreateVideos < ActiveRecord::Migration[7.0]
def change
create_table :videos do |t|
t.string :vimeo_url
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131201202915_create_sponsors.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateSponsors < ActiveRecord::Migration
class CreateSponsors < ActiveRecord::Migration[7.0]
def change
create_table :sponsors do |t|
t.string :name
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20140106172253_devise_create_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class DeviseCreateUsers < ActiveRecord::Migration
class DeviseCreateUsers < ActiveRecord::Migration[7.0]
def change
create_table(:users) do |t|
## Database authenticatable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateRailsAdminHistoriesTable < ActiveRecord::Migration
class CreateRailsAdminHistoriesTable < ActiveRecord::Migration[7.0]
def self.up
create_table :rails_admin_histories do |t|
t.text :message # title, name, or object_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20140107180320_create_tweets.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTweets < ActiveRecord::Migration
class CreateTweets < ActiveRecord::Migration[7.0]
def change
create_table :tweets do |t|
t.string :text
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20140220114849_add_happened_at_to_talks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddHappenedAtToTalks < ActiveRecord::Migration
class AddHappenedAtToTalks < ActiveRecord::Migration[7.0]
def change
add_column :talks, :happened_at, :date
add_index :talks, :happened_at
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20140221114249_add_slides_and_video_to_talks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddSlidesAndVideoToTalks < ActiveRecord::Migration
class AddSlidesAndVideoToTalks < ActiveRecord::Migration[7.0]
def change
add_column :talks, :slides, :string
add_column :talks, :video_slug, :string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RenameVideoSlugToVideoUrlInTalks < ActiveRecord::Migration
class RenameVideoSlugToVideoUrlInTalks < ActiveRecord::Migration[7.0]
def change
rename_column :talks, :video_slug, :video_url
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20140702174558_add_lineup_to_talks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddLineupToTalks < ActiveRecord::Migration
class AddLineupToTalks < ActiveRecord::Migration[7.0]
def change
add_column :talks, :lineup, :boolean, default: false, index: true
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20141104103459_remove_lineup_from_talks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RemoveLineupFromTalks < ActiveRecord::Migration
class RemoveLineupFromTalks < ActiveRecord::Migration[7.0]
def up
remove_column :talks, :lineup
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170812131957_add_speaker_twitter_to_talk.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddSpeakerTwitterToTalk < ActiveRecord::Migration
class AddSpeakerTwitterToTalk < ActiveRecord::Migration[7.0]
def change
add_column :talks, :speaker_twitter, :string
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddPreferredTalkMonthToTalk < ActiveRecord::Migration
class AddPreferredTalkMonthToTalk < ActiveRecord::Migration[7.0]
def change
add_column :talks, :preferred_month_talk, :string
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170812155652_add_time_to_talk.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddTimeToTalk < ActiveRecord::Migration
class AddTimeToTalk < ActiveRecord::Migration[7.0]
def change
add_column :talks, :time_position, :datetime
end
Expand Down
34 changes: 17 additions & 17 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
t.string "table"
t.integer "month", limit: 2
t.bigint "year"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["item", "table", "month", "year"], name: "index_rails_admin_histories"
end

create_table "sponsors", force: :cascade do |t|
t.string "name"
t.string "website"
t.string "logo"
t.datetime "from", precision: nil
t.datetime "until", precision: nil
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.datetime "from"
t.datetime "until"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "talks", force: :cascade do |t|
Expand All @@ -42,14 +42,14 @@
t.string "speaker_email"
t.string "level"
t.string "duration"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.date "happened_at"
t.string "slides"
t.string "video_url"
t.string "speaker_twitter"
t.string "preferred_month_talk"
t.datetime "time_position", precision: nil
t.datetime "time_position"
t.string "priority"
t.index ["happened_at"], name: "index_talks_on_happened_at"
end
Expand All @@ -59,18 +59,18 @@
t.string "author"
t.string "twitter_handle"
t.string "cool_projects"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_at", precision: nil
t.datetime "remember_created_at", precision: nil
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
end
Expand All @@ -82,8 +82,8 @@
t.text "description"
t.date "event_date"
t.string "slug"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["slug"], name: "index_videos_on_slug", unique: true
end

Expand Down
Loading