Merge branch 'master' into feature/rs-oauth
# Conflicts: # app/models/user.rb # config/routes.rb # db/schema.rb
This commit is contained in:
5
db/migrate/20230304155240_add_nostr_pubkey_to_users.rb
Normal file
5
db/migrate/20230304155240_add_nostr_pubkey_to_users.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddNostrPubkeyToUsers < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :users, :nostr_pubkey, :string
|
||||
end
|
||||
end
|
||||
22
db/migrate/20230523120753_create_flipper_tables.rb
Normal file
22
db/migrate/20230523120753_create_flipper_tables.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
class CreateFlipperTables < ActiveRecord::Migration[7.0]
|
||||
def self.up
|
||||
create_table :flipper_features do |t|
|
||||
t.string :key, null: false
|
||||
t.timestamps null: false
|
||||
end
|
||||
add_index :flipper_features, :key, unique: true
|
||||
|
||||
create_table :flipper_gates do |t|
|
||||
t.string :feature_key, null: false
|
||||
t.string :key, null: false
|
||||
t.string :value
|
||||
t.timestamps null: false
|
||||
end
|
||||
add_index :flipper_gates, [:feature_key, :key, :value], unique: true
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :flipper_gates
|
||||
drop_table :flipper_features
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user